/* ===== BLOG ARTICLE STYLES ===== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #E8457C);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0 0;
    margin-top: 70px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-tertiary);
}

.breadcrumbs-list a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-list a:hover {
    color: var(--primary-dark, #2B4BC8);
}

.breadcrumb-current {
    color: var(--text-secondary);
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 32px 0 60px;
    max-width: 100%;
    overflow-x: hidden;
}

.article-main {
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}

.blog-article {
    padding-top: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Article Header */
.article-header {
    margin-bottom: 32px;
}

.article-cluster {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: color-mix(in srgb, var(--cluster-color, var(--primary)) 10%, transparent);
    color: var(--cluster-color, var(--primary));
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* Author Block */
.author-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 28px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.author-info p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.author-block-bottom {
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    background: white;
}

/* Article Hero Image */
.article-hero-img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
}

.article-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blog-article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 40px 0 16px;
    padding-top: 8px;
}

.blog-article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.blog-article-content p {
    margin-bottom: 16px;
}

.blog-article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-article-content a:hover {
    border-bottom-color: var(--primary);
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.blog-article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.blog-article-content li strong {
    color: var(--text-primary);
}

.blog-article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #f0f4ff 0%, #faf0ff 100%);
    border-radius: 0 12px 12px 0;
    font-style: normal;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.blog-article-content blockquote strong {
    color: var(--primary);
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-article-content th {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
}

.blog-article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.blog-article-content tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* Channel Recommendation Block */
.article-channels-block {
    margin: 32px 0;
    padding: 28px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e6ff;
    border-radius: 20px;
}

.acb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.acb-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.acb-icon {
    font-size: 1.3rem;
}

.acb-grid {
    display: grid;
    gap: 12px;
}

.acb-card {
    display: block;
    padding: 16px 20px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.acb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 91, 219, 0.1);
    border-color: var(--primary);
}

.acb-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.acb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.acb-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.acb-handle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.acb-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

.acb-card-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.acb-all-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.acb-all-link:hover {
    color: var(--primary-dark, #2B4BC8);
}

/* CTA Block */
.article-cta {
    margin: 40px 0;
    padding: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    border-radius: 24px;
    text-align: center;
    color: white;
}

.article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.article-cta p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.article-cta .btn-primary {
    background: white;
    color: var(--primary);
}

.article-cta .btn-primary:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.article-cta .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    background: transparent;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.article-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* Related Articles */
.related-articles {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    background: white;
}

.related-cluster {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.related-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: auto;
}

/* Sidebar */
.article-sidebar {
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-toc,
.sidebar-cluster,
.sidebar-cta {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 20px;
}

.sidebar-toc h4,
.sidebar-cluster h4,
.sidebar-cta h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.sidebar-toc nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc nav li {
    margin-bottom: 6px;
}

.sidebar-toc nav a {
    display: block;
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.sidebar-toc nav a:hover,
.sidebar-toc nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-cluster ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cluster li {
    margin-bottom: 8px;
}

.sidebar-cluster a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.sidebar-cluster a:hover {
    color: var(--primary);
}

.sidebar-cta {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf0ff 100%);
    text-align: center;
    border: 1px solid #e0e6ff;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Badge for btn-sm */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* === BLOG LIST PAGE STYLES === */
.blog-hero {
    padding: 120px 0 48px;
    background: linear-gradient(135deg, #F8F9FF 0%, #EEF1FF 100%);
    text-align: center;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Cluster Filters */
.blog-filters {
    display: flex;
    gap: 10px;
    padding: 24px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.blog-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px 0 60px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff, #faf0ff);
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-img .blog-card-cluster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Blog Search */
.blog-search-wrap {
    max-width: 500px;
    margin: 0 auto 8px;
}

.blog-search-wrap input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 0.95rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='7'/%3E%3Cline x1='15' y1='15' x2='19' y2='19'/%3E%3C/svg%3E") 16px center no-repeat;
    transition: all 0.3s;
}

.blog-search-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .article-header h1 {
        font-size: 1.7rem;
    }

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

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

    .article-cta {
        padding: 24px;
    }

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

    .blog-hero h1 {
        font-size: 2rem;
    }

    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .article-layout,
    .blog-article,
    .blog-article-content {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .blog-article-content {
        padding-right: 0;
    }

    .blog-article-content p,
    .blog-article-content h2,
    .blog-article-content h3,
    .blog-article-content h4,
    .blog-article-content li {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .blog-article-content table {
        display: block;
        overflow-x: auto;
        max-width: calc(100vw - 48px);
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    .blog-article-content blockquote {
        margin-left: 0;
        margin-right: 0;
        padding: 14px 16px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .blog-article-content ul,
    .blog-article-content ol {
        padding-left: 20px;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    .blog-article-content img {
        max-width: 100%;
        height: auto;
    }

    .article-channels-block {
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        max-width: 100%;
    }

    .article-cta {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        box-sizing: border-box;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        max-width: 100vw;
    }

    .author-block {
        max-width: 100%;
        box-sizing: border-box;
    }

    .article-header h1 {
        font-size: 1.5rem;
        word-break: break-word;
    }
}

/* ===== ENRICHMENT BLOCKS ===== */

/* Stat Cards Grid */
.enrich-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.enrich-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e6ff;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.enrich-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 91, 219, 0.12);
    border-color: var(--primary);
}

.enrich-stat-icon {
    font-size: 1.6rem;
}

.enrich-stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.enrich-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* FAQ Accordion */
.enrich-faq {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 20px;
}

.enrich-faq h2 {
    font-family: var(--font-heading) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    color: var(--text-primary) !important;
}

.enrich-faq-item {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
    transition: all 0.3s;
}

.enrich-faq-item:hover {
    border-color: var(--primary);
}

.enrich-faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(59, 91, 219, 0.08);
}

.enrich-faq-item summary {
    padding: 16px 48px 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.5;
    transition: color 0.2s;
}

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

.enrich-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
}

.enrich-faq-item[open] summary::after {
    content: '−';
}

.enrich-faq-item summary:hover {
    color: var(--primary);
}

.enrich-faq-item p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Expert Tip Card */
.enrich-expert-tip {
    margin: 32px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-left: 4px solid #F59E0B;
    border-radius: 0 16px 16px 0;
}

.enrich-expert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.enrich-expert-icon {
    font-size: 1.3rem;
}

.enrich-expert-header strong {
    font-size: 0.9rem;
    color: #92400E;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.enrich-expert-tip p {
    font-size: 1rem;
    color: #78350F;
    line-height: 1.7;
    margin-bottom: 8px;
    font-style: italic;
}

.enrich-expert-author {
    font-size: 0.82rem;
    color: #92400E;
    font-weight: 600;
}

/* Responsive enrichment */
@media (max-width: 768px) {
    .enrich-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .enrich-stat-value {
        font-size: 1.15rem;
    }

    .enrich-faq {
        padding: 20px;
    }

    .enrich-expert-tip {
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .enrich-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .enrich-stat-card {
        padding: 14px 8px;
    }
}