/* ─────────────────────────────────────────────────────────
   MEERI ARTICLE — Page Styles
   ───────────────────────────────────────────────────────── */

/* ─── READING PROGRESS BAR ───────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 200;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* ─── BREADCRUMB ─────────────────────────────────────── */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.article-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.article-breadcrumb a:hover {
    color: var(--accent-bright);
}

.article-breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ─── ARTICLE PAGE WRAPPER ───────────────────────────── */
.article-page {
    padding-top: 140px;
    padding-bottom: 96px;
}

.article-container {
    max-width: 720px;
    margin-inline: auto;
    padding-inline: 28px;
}

/* ─── ARTICLE HEADER ─────────────────────────────────── */
.article-header {
    margin-bottom: 56px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.article-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    flex-shrink: 0;
}

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

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

.article-author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.article-author-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── ARTICLE BODY ───────────────────────────────────── */
.article-body {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.78;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.25;
    margin-top: 52px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.35;
    margin-top: 36px;
    margin-bottom: 12px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-body ul li,
.article-body ol li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
}

.article-body ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 10px;
}

.article-body ol {
    counter-reset: ol-counter;
}

.article-body ol li {
    counter-increment: ol-counter;
}

.article-body ol li::before {
    content: counter(ol-counter);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-bright);
    background: var(--accent-dim);
    border: 1px solid rgba(139, 92, 246, 0.2);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.article-body .stat-callout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.article-body .callout-stat {
    text-align: center;
}

.article-body .callout-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent-bright);
    line-height: 1;
    margin-bottom: 6px;
}

.article-body .callout-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-style: normal;
}

/* ─── ARTICLE FOOTER ─────────────────────────────────── */
.article-footer {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

/* ─── IN-ARTICLE CTA ─────────────────────────────────── */
.article-cta-block {
    background: var(--bg-surface);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.article-cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%,
        rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.article-cta-block h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
}

.article-cta-block p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.65;
    position: relative;
}

.article-cta-block .btn {
    position: relative;
}

.article-cta-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 12px;
    position: relative;
}

/* ─── RELATED POSTS ──────────────────────────────────── */
.related-posts h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.related-post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.related-post-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.related-post-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-bright);
}

.related-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.4;
}

.related-post-read {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .article-page { padding-top: 110px; }

    .article-body h2 { font-size: 1.25rem; margin-top: 40px; }

    .article-body .stat-callout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .article-cta-block { padding: 28px 22px; }
}
