/* ============================================================
   BLOG POST – PREMIUM EDITORIAL EDITION
   ============================================================ */

/* ============================================================
   ROOT VARIABLES (Aligned with Global)
   ============================================================ */
:root {
    --primary-blue: #0f2b5c;
    --primary-blue-dark: #091b3d;
    --accent-gold: #dfb76c;
    --accent-gold-dark: #c9a55a;
    --accent-gold-light: #f0d28c;
    --dark-bg: #0b132b;
    --slate-dark: #0f172a;
    --slate-mid: #1e293b;
    --light-bg: #f8fafc;
    --pure-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #94a3b8;
    --text-light: #f1f5f9;
    --font-heading: 'Manrope', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-max: 1200px;
    --card-radius: 6px;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================================
   READING PROGRESS BAR (Gold accent)
   ============================================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(223, 183, 108, 0.3);
}

/* ============================================================
   1. CINEMATIC HERO
   ============================================================ */
.blog-post-hero {
    position: relative;
    overflow: hidden;
    padding: 9rem 0 4.5rem 0;
    background:
        linear-gradient(135deg, rgba(9, 27, 61, 0.90) 0%, rgba(11, 19, 43, 0.92) 100%),
        url('https://images.unsplash.com/photo-1582139329536-e7284fece509?w=1600&h=900&fit=crop') 
        center center / cover no-repeat;
    border-bottom: 2px solid var(--accent-gold);
}

/* Gold radial glow */
.blog-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(223, 183, 108, 0.12), transparent 45%);
    pointer-events: none;
}

.blog-post-hero .hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-post-hero .hero-badge {
    display: inline-block;
    background: rgba(223, 183, 108, 0.10);
    border: 1px solid rgba(223, 183, 108, 0.15);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.blog-post-hero h1 {
    color: var(--pure-white);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 500;
    max-width: 800px;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.blog-post-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.7;
    font-family: var(--font-body);
}

.blog-post-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-family: var(--font-body);
}

.blog-post-hero .hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-post-hero .hero-meta i {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* ============================================================
   2. MAIN CONTAINER (Narrow reading width)
   ============================================================ */
.blog-post-container {
    padding: 3.5rem 0 5rem 0;
    background: var(--light-bg);
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 2.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ============================================================
   3. FEATURED IMAGE (Overlaps hero)
   ============================================================ */
.post-featured-image {
    grid-column: 1 / -1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-dark);
    aspect-ratio: 16 / 9;
    margin-top: -90px;
    position: relative;
    z-index: 3;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.18),
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   4. ARTICLE CONTENT (Narrow width, premium typography)
   ============================================================ */
.post-content {
    grid-column: 2 / 3;
    max-width: 720px;
    margin: 0 auto;
}

/* ----- Lead Paragraph ----- */
.post-content .lead-paragraph {
    font-size: 1.15rem;
    line-height: 1.95;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.8rem;
    font-family: var(--font-body);
    max-width: 65ch;
}

.post-content .lead-paragraph::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    float: left;
    color: var(--primary-blue);
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
}

/* ----- Body Paragraphs ----- */
.post-content p {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-dark);
    font-weight: 300;
    margin-bottom: 1.8rem;
    font-family: var(--font-body);
    max-width: 65ch;
}

/* ----- Headings (Premium weight) ----- */
.post-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

/* ----- Large Pull Quote (Premium) ----- */
.post-content blockquote {
    border-left: none;
    background: #fcfbf8;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 12px;
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 3.5rem;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 0.8;
    display: block;
    margin-bottom: 0.3rem;
}

.post-content blockquote p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 100%;
}

.post-content blockquote cite {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

/* ----- Custom Check List ----- */
.post-content .custom-check-list {
    list-style: none;
    padding: 0;
    margin: 1.8rem 0;
}

.post-content .custom-check-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2.2rem;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: var(--font-body);
}

.post-content .custom-check-list li:last-child {
    border-bottom: none;
}

.post-content .custom-check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.6rem;
    color: var(--accent-gold);
}

/* ----- Images inside content ----- */
.post-content img {
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ----- Stats / Highlight Box ----- */
.post-content .stat-box {
    background: #fcfbf8;
    padding: 2rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.post-content .stat-box .stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--accent-gold);
    display: block;
    line-height: 1;
}

.post-content .stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 0.3rem;
}

/* ============================================================
   5. TABLE OF CONTENTS (Sticky)
   ============================================================ */
.toc-widget {
    position: sticky;
    top: 100px;
    align-self: start;
}

.toc-widget h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.toc-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-widget ul li {
    margin-bottom: 0.5rem;
}

.toc-widget ul li a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
}

.toc-widget ul li a:hover {
    color: var(--accent-gold);
}

/* ============================================================
   6. FLOATING SHARE BAR (Sticky vertical)
   ============================================================ */
.floating-share {
    position: sticky;
    top: 120px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.floating-share .share-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    writing-mode: vertical-lr;
    margin-bottom: 0.3rem;
}

.floating-share .share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--pure-white);
    color: var(--text-muted);
    border: 1px solid rgba(15, 43, 92, 0.04);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.floating-share .share-link:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(223, 183, 108, 0.15);
    border-color: var(--accent-gold);
}

/* ============================================================
   7. AUTHOR BIO (Premium card)
   ============================================================ */
.author-bio {
    display: flex;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 2.5rem;
    background: var(--pure-white);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(15, 43, 92, 0.04);
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.author-info .author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    font-family: var(--font-body);
}

.author-info .author-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 0.4rem;
    line-height: 1.7;
    font-family: var(--font-body);
    max-width: 100%;
}

/* ============================================================
   8. SIDEBAR (Sticky)
   ============================================================ */
.post-sidebar {
    grid-column: 3 / 4;
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 43, 92, 0.04);
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(15, 43, 92, 0.04);
    font-family: var(--font-heading);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 0.6rem;
}

.sidebar-widget ul li a {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
    display: block;
}

.sidebar-widget ul li a:hover {
    color: var(--accent-gold);
}

/* ----- CTA Widget (warm background) ----- */
.cta-widget {
    background: #fcfbf8;
    border: 1px solid rgba(223, 183, 108, 0.08);
}

.cta-widget .cta-box {
    text-align: center;
}

.cta-widget .cta-box h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.cta-widget .cta-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.cta-widget .cta-box .btn-primary {
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    border-radius: var(--card-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-widget .cta-box .btn-primary:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(223, 183, 108, 0.2);
}

/* ============================================================
   9. RELATED ARTICLES (Premium grid)
   ============================================================ */
.related-articles {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(15, 43, 92, 0.04);
}

.related-articles h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.8rem;
    font-family: var(--font-heading);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 43, 92, 0.04);
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(15, 43, 92, 0.08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.related-content {
    padding: 1.2rem 1.2rem 1.4rem 1.2rem;
}

.related-tag {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    background: rgba(223, 183, 108, 0.08);
    padding: 0.15rem 0.7rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
}

.related-content .related-meta {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
}

.related-content h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.6rem 0;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.related-content h4 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: var(--primary-blue);
}

.related-content .read-link {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.related-content .read-link i {
    transition: transform 0.3s ease;
}

.related-content .read-link:hover i {
    transform: translateX(4px);
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */

/* ---------- Tablet (1024px) ---------- */
@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-content {
        grid-column: 1;
        max-width: 100%;
    }

    .post-sidebar {
        grid-column: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        position: static;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }

    .floating-share {
        display: none;
    }

    .toc-widget {
        display: none;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-featured-image {
        margin-top: -60px;
    }
}

/* ---------- Mobile (768px) ---------- */
@media (max-width: 768px) {
    .blog-post-hero {
        padding: 7rem 0 2.5rem 0;
    }

    .blog-post-hero h1 {
        font-size: 1.8rem;
    }

    .blog-post-hero p {
        font-size: 1rem;
    }

    .blog-post-hero .hero-meta {
        gap: 1rem;
        font-size: 0.7rem;
    }

    .blog-post-container {
        padding: 2rem 0 3rem 0;
    }

    .post-featured-image {
        margin-top: -40px;
        border-radius: 8px;
        aspect-ratio: 4 / 3;
    }

    .post-content .lead-paragraph {
        font-size: 1rem;
    }

    .post-content .lead-paragraph::first-letter {
        font-size: 2.8rem;
    }

    .post-content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .post-content h2 {
        font-size: 1.4rem;
        margin-top: 3rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
        margin-top: 2rem;
    }

    .post-content blockquote {
        padding: 1.8rem 1.5rem 1.5rem 1.5rem;
    }

    .post-content blockquote p {
        font-size: 1.2rem;
    }

    .post-content blockquote::before {
        font-size: 2.8rem;
    }

    .post-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .author-info .author-desc {
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .post-content .stat-box .stat-number {
        font-size: 2.2rem;
    }

    .post-content .custom-check-list li {
        font-size: 0.9rem;
    }
}

/* ---------- Small Mobile (480px) ---------- */
@media (max-width: 480px) {
    .blog-post-hero h1 {
        font-size: 1.5rem;
    }

    .blog-post-hero .hero-meta {
        gap: 0.6rem;
        font-size: 0.6rem;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-content .lead-paragraph::first-letter {
        font-size: 2.2rem;
    }

    .post-content p {
        font-size: 0.9rem;
    }

    .post-content h2 {
        font-size: 1.2rem;
        margin-top: 2.5rem;
    }

    .post-content blockquote {
        padding: 1.2rem 1rem 1rem 1rem;
    }

    .post-content blockquote p {
        font-size: 1.1rem;
    }

    .post-featured-image {
        margin-top: -25px;
    }

    .author-bio {
        padding: 1rem;
        gap: 0.8rem;
    }

    .author-avatar {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1rem;
    }

    .author-info .author-name {
        font-size: 0.95rem;
    }

    .author-info .author-desc {
        font-size: 0.8rem;
    }

    .related-content h4 {
        font-size: 0.85rem;
    }
}

/* ============================================================
   11. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .related-card,
    .related-card:hover,
    .post-featured-image,
    .floating-share .share-link,
    .btn-primary {
        transition: none !important;
        transform: none !important;
    }

    .related-card:hover {
        transform: none !important;
    }

    .floating-share .share-link:hover {
        transform: none !important;
    }

    .btn-primary:hover {
        transform: none !important;
    }
}

/* ============================================================
   12. ACCESSIBILITY: FOCUS VISIBLE
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}