/* blog-article.css — Extracted from blog/article_dynamic.html */

/* Breadcrumb */
.blog-breadcrumb {
    background: #0f0c29;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}

.blog-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: #a5b4fc;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4);
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* Article Page Styles */
.article-hero {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.article-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-meta-hero span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.article-content-wrapper {
    background: #f8fafc;
    padding: 60px 0 80px;
}

.article-container {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.25rem;
    padding-top: 1rem;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #334155;
    margin: 2rem 0 1rem;
}

.article-content strong {
    color: #1e293b;
    font-weight: 600;
}

.article-content a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #764ba2;
    text-decoration-color: #764ba2;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f1f5f9;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

/* Stats Box */
.stats-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 2rem 0;
    color: #fff;
}

.stats-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* CTA Box */
.cta-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: #64748b;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.cta-box .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 20px 24px;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.info-box strong {
    color: #1e40af;
}

/* Warning Box */
.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.warning-box strong {
    color: #b45309;
}

/* Stat Highlight */
.stat-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    margin-top: 3rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.author-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #0a66c2;
    color: #fff;
    font-size: 0.85rem;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.author-linkedin:hover {
    background: #004182;
    color: #fff;
}

.author-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Related Articles Inline */
.related-articles-inline {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-articles-inline h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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

.related-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-card:hover {
    background: #f1f5f9;
    border-color: #667eea;
    transform: translateY(-2px);
}

.related-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #667eea;
    margin-bottom: 6px;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

/* Share Box */
.share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 15px;
}

.share-box span {
    font-weight: 600;
    color: #64748b;
}

.share-links {
    display: flex;
    gap: 12px;
}

.share-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-links a:hover {
    background: #667eea;
    color: #fff;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.language-selector a {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.language-selector a:hover,
.language-selector a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

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

    .article-hero h1 {
        font-size: 1.875rem;
    }

    .article-container {
        padding: 30px 24px;
        margin: 0 16px;
        border-radius: 16px;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

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

    .article-meta-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

/* FAQ Accordion (details/summary) */
.faq-section {
    margin: 2.5rem 0;
}

.faq-section h2 {
    margin-bottom: 1.5rem;
}

.faq-section details {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-section details[open] {
    border-color: var(--bs-primary, #667eea);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.faq-section details summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f2937;
    transition: background 0.2s ease;
}

.faq-section details summary:hover {
    background: #f8fafc;
}

.faq-section details summary::-webkit-details-marker {
    display: none;
}

.faq-section details summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-section details[open] summary::after {
    content: '−';
    color: var(--bs-primary, #667eea);
}

.faq-section details p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

/* Dark Mode */
body.dark-mode .article-content-wrapper {
    background: #1a1a2e;
}
body.dark-mode .article-container {
    background: #16213e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
body.dark-mode .article-content {
    color: #cbd5e1;
}
body.dark-mode .article-content h2 {
    color: #e2e8f0;
}
body.dark-mode .article-content h3 {
    color: #cbd5e1;
}
body.dark-mode .article-content strong {
    color: #e2e8f0;
}
body.dark-mode .article-content a {
    color: #a5b4fc;
}
body.dark-mode .article-content blockquote {
    background: #1a1a2e;
    color: #94a3b8;
}
body.dark-mode .article-content code {
    background: #1a1a2e;
    color: #a5b4fc;
}
body.dark-mode .article-content table th {
    background: #1a1a2e;
    color: #e2e8f0;
    border-color: #334155;
}
body.dark-mode .article-content table td {
    border-color: #334155;
    color: #94a3b8;
}
body.dark-mode .toc-sidebar {
    background: #16213e;
    border-color: #334155;
}
body.dark-mode .toc-sidebar a {
    color: #94a3b8;
}
body.dark-mode .toc-sidebar a:hover,
body.dark-mode .toc-sidebar a.active {
    color: #a5b4fc;
}
body.dark-mode .faq-section {
    background: #16213e;
    border-color: #334155;
}
body.dark-mode .faq-section summary {
    color: #e2e8f0;
}
body.dark-mode .faq-section details p {
    color: #94a3b8;
}
body.dark-mode .related-articles-card {
    background: #16213e;
    border-color: #334155;
}
body.dark-mode .related-articles-card h4 {
    color: #e2e8f0;
}
body.dark-mode .related-articles-card a {
    color: #94a3b8;
}

/* ══ Dark mode — ALL blog article elements ══ */

/* Tables */
body.dark-mode .blog-article-body table,
body.dark-mode .blog-article-content table {
    border-color: #334155 !important;
}
body.dark-mode .blog-article-body table td,
body.dark-mode .blog-article-body table th,
body.dark-mode .blog-article-content table td,
body.dark-mode .blog-article-content table th {
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .blog-article-body table tr[style*="background:#f8f9fa"],
body.dark-mode .blog-article-body table tr[style*="background:var(--bg-secondary"],
body.dark-mode .blog-article-content table tr[style*="background:#f8f9fa"],
body.dark-mode .blog-article-content table tr[style*="background:var(--bg-secondary"] {
    background: #1e293b !important;
}
body.dark-mode .blog-article-body table tr[style*="background:#1a1a2e"],
body.dark-mode .blog-article-body table tr[style*="background:var(--table-header"],
body.dark-mode .blog-article-content table tr[style*="background:#1a1a2e"],
body.dark-mode .blog-article-content table tr[style*="background:var(--table-header"] {
    background: #0f172a !important;
}
body.dark-mode .blog-article-body table tr[style*="background:#16213e"],
body.dark-mode .blog-article-body table tr[style*="background:var(--table-subheader"],
body.dark-mode .blog-article-content table tr[style*="background:#16213e"],
body.dark-mode .blog-article-content table tr[style*="background:var(--table-subheader"] {
    background: #1e293b !important;
}
body.dark-mode .blog-article-body table a,
body.dark-mode .blog-article-content table a {
    color: #8B5CF6 !important;
}
/* Table headers with light blue bg */
body.dark-mode th[style*="background:#eff6ff"],
body.dark-mode th[style*="background: #eff6ff"] {
    background: #1e293b !important;
    color: #8B5CF6 !important;
    border-color: #334155 !important;
}

/* Stat highlight boxes */
body.dark-mode .stat-highlight {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Info boxes */
body.dark-mode .info-box {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .info-box strong {
    color: #e2e8f0 !important;
}

/* CTA boxes */
body.dark-mode .cta-box {
    background: #1e293b !important;
    border-color: #8B5CF6 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .cta-box h4 {
    color: #fff !important;
}
body.dark-mode .cta-box p {
    color: #cbd5e1 !important;
}
body.dark-mode .cta-box .btn {
    background: #8B5CF6 !important;
    color: #fff !important;
    border-color: #8B5CF6 !important;
}

/* Author box */
body.dark-mode .author-box,
body.dark-mode .author-box-content {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .author-box h4,
body.dark-mode .author-box-content h4 {
    color: #e2e8f0 !important;
}
body.dark-mode .author-bio {
    color: #94a3b8 !important;
}
body.dark-mode .author-role,
body.dark-mode .author-company,
body.dark-mode .author-meta {
    color: #94a3b8 !important;
}
body.dark-mode .author-company a {
    color: #8B5CF6 !important;
}
body.dark-mode .author-tag {
    background: rgba(139,92,246,0.15) !important;
    color: #a78bfa !important;
    border-color: rgba(139,92,246,0.3) !important;
}

/* Related articles cards */
body.dark-mode .related-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .related-card:hover {
    border-color: #8B5CF6 !important;
}
body.dark-mode .related-title {
    color: #e2e8f0 !important;
}
body.dark-mode .related-category {
    background: rgba(139,92,246,0.15) !important;
    color: #a78bfa !important;
}

/* Rating section */
body.dark-mode .article-rating-section,
body.dark-mode .rating-container {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .rating-title {
    color: #e2e8f0 !important;
}
body.dark-mode .star-btn {
    color: #475569 !important;
}
body.dark-mode .star-btn.active,
body.dark-mode .star-btn:hover {
    color: #fbbf24 !important;
}
body.dark-mode .rating-stats,
body.dark-mode .average-rating,
body.dark-mode .total-votes {
    color: #94a3b8 !important;
}

/* Blockquotes */
body.dark-mode blockquote {
    background: #1e293b !important;
    border-left-color: #8B5CF6 !important;
    color: #cbd5e1 !important;
}

/* Any remaining light backgrounds in article content */
body.dark-mode .blog-article-body [style*="background:#fff"],
body.dark-mode .blog-article-body [style*="background: #fff"],
body.dark-mode .blog-article-body [style*="background:white"],
body.dark-mode .blog-article-body [style*="background: white"],
body.dark-mode .blog-article-content [style*="background:#fff"],
body.dark-mode .blog-article-content [style*="background: #fff"],
body.dark-mode .blog-article-content [style*="background:white"],
body.dark-mode .blog-article-content [style*="background: white"] {
    background: #1e293b !important;
}

/* Any light text on dark bg issues */
body.dark-mode .blog-article-body [style*="color:#333"],
body.dark-mode .blog-article-body [style*="color: #333"],
body.dark-mode .blog-article-body [style*="color:#1a1a2e"],
body.dark-mode .blog-article-content [style*="color:#333"],
body.dark-mode .blog-article-content [style*="color: #333"],
body.dark-mode .blog-article-content [style*="color:#1a1a2e"] {
    color: #e2e8f0 !important;
}

