/* Article Styles - SEO Optimized */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.article-container {
    background: white;
}

.article-header {
    padding: 140px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.article-content {
    padding: 60px 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

/* Article Cover Image */
.article-cover {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 8px;
}

/* AI Summary Block */
.ai-summary-block {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ai-icon {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.ai-summary-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.ai-summary-content {
    color: var(--text-dark);
}

.ai-summary-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.ai-summary-content p:last-child {
    margin-bottom: 0;
}

/* Table of Contents */

.table-of-contents h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.table-of-contents a:hover {
    color: var(--primary-dark);
    padding-left: 0.5rem;
}

/* Article Typography */
.article-body h2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 3rem 0 1.5rem !important;
    color: var(--text-dark) !important;
    line-height: 1.3 !important;
}

.article-body h3 {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    margin: 2rem 0 1rem !important;
    color: var(--text-dark) !important;
}

.article-body p {
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-dark) !important;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0 !important;
    padding-left: 2rem !important;
}

.article-body li {
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
    margin-bottom: 0.75rem !important;
    color: var(--text-dark) !important;
}

.article-body strong {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

.article-body section {
    margin-bottom: 3rem !important;
}

/* Info Boxes */
.info-box,
.warning-box,
.help-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-box {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.help-box {
    background: #dcfce7;
    border-left: 4px solid #10b981;
}

.info-box h3,
.warning-box h3,
.help-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-box ul,
.warning-box ul,
.help-box ul {
    margin-bottom: 0;
}

.help-box .cta-button {
    margin-top: 1rem;
    display: inline-block;
}

/* Article Conclusion */
.article-conclusion {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.article-conclusion h2 {
    margin-top: 0;
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin: 3rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.author-info p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
}

/* Related Articles */
.related-articles {
    margin: 4rem 0;
}

.related-articles h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h3 {
    padding: 1rem;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-dark);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* Statistics Section */
.statistics-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.statistics-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-box p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.statistics-section .info-box {
    margin: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 120px 0 30px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-body p,
    .article-body li {
        font-size: 1rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .table-of-contents {
        padding: 1rem;
    }
}

/* OVERRIDE ALL - Maximum specificity */
.article-container .article-content .article-body section h2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 3rem 0 1.5rem !important;
    color: #1a202c !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

.article-container .article-content .article-body section h3 {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    margin: 2rem 0 1rem !important;
    color: #1a202c !important;
    padding: 0 !important;
}

.article-container .article-content .article-body section {
    margin-bottom: 3rem !important;
    padding: 0 !important;
}

.article-container .article-content .article-body section p {
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1.5rem !important;
}
