/* Article Styles - ArcaQ Blog */

/* Article Container */
.article-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

/* Article Header */
.article-header {
    margin-bottom: 48px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #a0a0a0;
}

.article-tag {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-lead {
    font-size: 1.25rem;
    color: #c0c0c0;
    line-height: 1.7;
    padding: 24px;
    background: rgba(96, 165, 250, 0.05);
    border-left: 4px solid #60a5fa;
    border-radius: 0 8px 8px 0;
}

/* Article Content */
.article-content {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.article-content section {
    margin-bottom: 48px;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.375rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #60a5fa;
    font-weight: 500;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.article-content a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #a78bfa;
}

/* Highlight Box */
.highlight-box {
    background: rgba(167, 139, 250, 0.1);
    border-left: 4px solid #a78bfa;
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Quote Block */
.quote-block {
    background: rgba(96, 165, 250, 0.05);
    border-left: 4px solid #60a5fa;
    padding: 24px 28px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #c0c0c0;
}

.quote-block cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.875rem;
    color: #60a5fa;
}

/* Takeaways Section */
.takeaways-section {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
    padding: 32px;
    border-radius: 12px;
    margin: 48px 0;
}

.takeaways-section h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.takeaways-list {
    list-style: none;
    padding-left: 0;
}

.takeaways-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
}

.takeaways-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    background: rgba(30, 30, 40, 0.5);
    padding: 40px;
    border-radius: 16px;
    margin: 48px 0;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.faq-section h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 32px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.125rem;
}

.faq-item p {
    margin-bottom: 0;
    color: #b0b0b0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.cta-section h3 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
}

.cta-section p {
    margin-bottom: 28px;
    font-size: 1.125rem;
    color: #c0c0c0;
}

.btn-cta {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    color: #0f172a !important; /* Force dark text for visibility */
    text-decoration: none !important; /* Force no underline */
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
    color: #0f172a !important;
}

/* Article Footer */
.article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 48px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    padding: 8px;
}

.author-info span {
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin: 0;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-share span {
    color: #a0a0a0;
    font-size: 0.875rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* Site Footer */
.site-footer {
    background: rgba(20, 20, 30, 0.8);
    padding: 32px 24px;
    text-align: center;
    margin-top: 80px;
}

.site-footer p {
    color: #606060;
    font-size: 0.875rem;
    margin: 0;
}

/* RTL Support */
[dir="rtl"] .article-lead {
    border-left: none;
    border-right: 4px solid #60a5fa;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .highlight-box,
[dir="rtl"] .quote-block {
    border-left: none;
    border-right: 4px solid #a78bfa;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .takeaways-list li {
    padding-left: 0;
    padding-right: 32px;
}

[dir="rtl"] .takeaways-list li::before {
    left: auto;
    right: 0;
}

/* Related Articles Section */
.related-articles {
    margin: 60px 0 40px;
    padding: 40px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
}

.related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-articles h2::before {
    content: '📚';
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.15);
}

.related-card .tag {
    font-size: 0.75rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.related-card h3 {
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-card p {
    font-size: 0.875rem;
    color: #a0a0a0;
    line-height: 1.6;
    flex-grow: 1;
}

.related-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 16px;
}

.related-card:hover .read-more {
    color: #a78bfa;
}

[dir="rtl"] .related-articles h2::before {
    margin-left: 12px;
    margin-right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .article-container {
        margin-top: 80px;
        padding: 0 16px;
    }
    
    .article-lead {
        font-size: 1.125rem;
        padding: 20px;
    }
    
    .faq-section,
    .cta-section {
        padding: 28px 20px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-articles {
        padding: 24px;
        margin: 40px 0 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
