/* ═══════════════════════════════════════════════════════════════════
   TDN MAGAZINE v2.0 — ENTERTAINMENT VIBE
   Premium "big media outlet" visual upgrade.
   Layers on top of all existing CSS files.
   Think: Deadline / Variety / Hollywood Reporter meets modern digital.
═══════════════════════════════════════════════════════════════════ */

/* ─── Reading progress bar ────────────────────────────────────────── */
#tdn-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--tdn-red), var(--tdn-gold));
    z-index: 200000;
    transition: width .1s linear;
    pointer-events: none;
}
/* Only show on single posts */
.single #tdn-progress-bar { display: block; }

/* ─── Premium badge system ────────────────────────────────────────── */
.tdn-badge {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 3px 9px 3px;
    border-radius: 2px;
    line-height: 1.5;
    transition: background .15s, transform .15s;
}
.tdn-badge:hover {
    transform: translateY(-1px);
}

/* Exclusive / Breaking / Review stamp overlays */
.tdn-stamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--tdn-gold);
    color: #fff;
    box-shadow: 0 2px 8px rgba(200,146,42,.4);
}
.tdn-stamp--breaking {
    background: var(--tdn-red);
    box-shadow: 0 2px 8px rgba(229,26,62,.4);
    animation: tdnPulse 1.8s ease-in-out infinite;
}
@keyframes tdnPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .72; }
}
.tdn-stamp--exclusive { background: var(--tdn-gold); }
.tdn-stamp--review    { background: #555; }

/* ─── Header: editorial premium upgrades ─────────────────────────── */

/* Date + edition strip above the header */
.tdn-hdr-dateline {
    background: var(--tdn-bg-soft);
    height: 28px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--tdn-border);
}
.tdn-hdr-dateline-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.tdn-hdr-dateline-left {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tdn-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.tdn-hdr-dateline-left span:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    color: var(--tdn-border);
}
.tdn-hdr-dateline-edition {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--tdn-red);
    text-transform: uppercase;
}

/* Logo text premium treatment */
.tdn-hdr-logo-text-brand {
    font-family: var(--font-headline);
    font-size: 2.1rem;
    letter-spacing: .04em;
    color: var(--tdn-black);
    text-decoration: none;
    line-height: 1;
    transition: color .15s;
}
.tdn-hdr-logo-text-brand:hover { color: var(--tdn-red); }
.tdn-hdr-logo-text-sub {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--tdn-muted-lt);
    display: block;
    margin-top: 1px;
}

/* Nav strip refinements — clean light bar.
   Uses #tdn-header scope for specificity instead of !important,
   keeping the cascade clean and overrides debuggable. */
#tdn-header .tdn-hdr-nav {
    background: #ffffff;
    box-shadow: none;
    border-top: 1px solid var(--tdn-border);
    border-bottom: 1px solid var(--tdn-border);
}
#tdn-header .tdn-hdr-nav-links a {
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--tdn-black);
    transition: color .15s, background .15s;
}
#tdn-header .tdn-hdr-nav-links a:hover,
#tdn-header .tdn-hdr-nav-links a.current {
    color: var(--tdn-red);
    background: rgba(229,26,62,.05);
}
#tdn-header .tdn-hdr-nav-links a::after {
    background: var(--tdn-red);
}
/* Social icons on light nav */
#tdn-header .tdn-hdr-nav-social a,
#tdn-header .tdn-hdr-share {
    color: var(--tdn-black);
}
#tdn-header .tdn-hdr-nav-social a:hover,
#tdn-header .tdn-hdr-share:hover {
    color: var(--tdn-red);
}

/* ─── Homepage: cinematic hero ────────────────────────────────────── */
.tdn-hero {
    position: relative;
    overflow: hidden;
}
/* Base image — no fixed height; portrait images breathe naturally */
.tdn-hero-img {
    object-fit: cover;
    opacity: .88;
    filter: saturate(1.1);
    transition: opacity .6s ease, transform .8s ease, filter .6s ease;
}
/* Landscape hero gets the cinematic fixed height */
.tdn-hero:not(.tdn-hero--portrait) .tdn-hero-img {
    height: 580px;
}
.tdn-hero:hover .tdn-hero-img {
    opacity: .78;
    transform: scale(1.04);
    filter: saturate(1.2);
}
/* Portrait hero — contains tall posters/promo art without cropping */
.tdn-hero--portrait .tdn-hero-img {
    height: auto;
    max-height: 82vh;
    object-fit: contain;
}
.tdn-hero--portrait:hover .tdn-hero-img {
    transform: none;
    filter: none;
}
/* More dramatic gradient overlay */
.tdn-hero-content {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.98) 0%,
        rgba(0,0,0,.80) 35%,
        rgba(0,0,0,.30) 68%,
        transparent 100%
    );
    padding: 80px var(--gutter) 44px;
}
/* Bigger, more cinematic hero title */
.tdn-hero-title {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    letter-spacing: -.03em;
    line-height: 1.12;
    margin-bottom: 14px;
    max-width: 860px;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
/* Red accent line before byline */
.tdn-hero-meta {
    margin-bottom: 16px;
}

/* ─── Article: premium reading experience ─────────────────────────── */

/* Refined article title typography — scoped to article context for specificity */
.tdn-article .tdn-article-title {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 800;
}

/* Byline bar: more editorial */
.tdn-article .tdn-article-byline-bar {
    padding: 14px 0;
    margin-bottom: 4px;
}
.tdn-article-byline { font-size: .875rem; }

/* Share buttons: premium bordered pill style */
.tdn-article .tdn-article-share-btn {
    border-radius: 20px;
    font-size: .72rem;
    padding: 5px 14px;
    font-weight: 800;
    letter-spacing: .6px;
}

/* ─── Cards: cinematic hover effects ──────────────────────────────── */

/* Spotlight cards */
.tdn-spotlight-thumb {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow .3s ease;
}
.tdn-spotlight-thumb:hover { box-shadow: var(--shadow-card-hover); }
.tdn-spotlight-img {
    transition: transform .5s cubic-bezier(.25,0,.25,1), filter .4s ease;
    filter: saturate(1);
}
.tdn-spotlight-thumb:hover .tdn-spotlight-img {
    transform: scale(1.06);
    filter: saturate(1.15);
}
.tdn-spotlight-headline {
    font-size: 1.08rem;
    letter-spacing: -.01em;
    line-height: 1.32;
}
.tdn-spotlight-body { gap: 10px; }
.tdn-spotlight-card { transition: transform .2s ease; }
.tdn-spotlight-card:hover { transform: translateY(-2px); }

/* River items */
.tdn-river-thumb {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease;
}
.tdn-river-thumb:hover { box-shadow: var(--shadow-card-hover); }
.tdn-river-img { transition: transform .4s ease, filter .3s ease; }
.tdn-river-thumb:hover .tdn-river-img {
    transform: scale(1.08);
    filter: saturate(1.1);
}
.tdn-river-headline {
    font-size: 1rem;
    line-height: 1.38;
    letter-spacing: -.01em;
}

/* Related posts */
.tdn-related-thumb {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.tdn-related-img { transition: transform .45s ease, filter .35s ease; }
.tdn-related-thumb:hover .tdn-related-img {
    transform: scale(1.07);
    filter: saturate(1.12);
}
.tdn-related-card { transition: transform .2s ease; }
.tdn-related-card:hover { transform: translateY(-3px); }
.tdn-related-title {
    font-size: .95rem;
    line-height: 1.4;
}

/* ─── Sidebar: editorial styling ──────────────────────────────────── */
.tdn-sidebar-widget-title {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 3px solid var(--tdn-black);
    padding-bottom: 12px;
    margin-bottom: 18px;
    position: relative;
}
.tdn-sidebar-widget-title::before {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 32px; height: 3px;
    background: var(--tdn-red);
}
.tdn-sidebar-post-thumb {
    width: 78px;
    min-width: 78px;
    height: 58px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tdn-sidebar-post-img { transition: transform .4s ease, filter .3s ease; }
.tdn-sidebar-post-thumb:hover .tdn-sidebar-post-img {
    transform: scale(1.1);
    filter: saturate(1.15);
}
.tdn-sidebar-post-title {
    font-size: .88rem;
    line-height: 1.38;
    letter-spacing: -.008em;
}

/* ─── Section headers: bold editorial labels ──────────────────────── */
.tdn-section-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ─── Article content: premium reading ────────────────────────────── */
/* Scoped under .tdn-article for clean specificity over single.css */
.tdn-article .tdn-article-content {
    font-size: 1.07rem;
    line-height: 1.82;
    letter-spacing: .01em;
}
.tdn-article .tdn-article-content h2 {
    font-size: 1.6rem;
    letter-spacing: -.02em;
    margin: 40px 0 16px;
    position: relative;
    padding-bottom: 12px;
}
.tdn-article .tdn-article-content h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: var(--tdn-red);
    border-radius: 1px;
}
.tdn-article .tdn-article-content h3 {
    font-size: 1.25rem;
    letter-spacing: -.015em;
}
.tdn-article .tdn-article-content p { margin-bottom: 24px; }

/* ─── Tags: pill-style with hover animation ───────────────────────── */
.tdn-tag {
    border-radius: 3px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 4px 12px;
}
.tdn-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(229,26,62,.15);
}

/* ─── Post nav: editorial styling ─────────────────────────────────── */
.tdn-post-nav {
    margin-top: 40px;
    padding-top: 32px;
}
.tdn-post-nav-title {
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.tdn-post-nav-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--tdn-border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tdn-post-nav-item:hover {
    border-color: var(--tdn-red);
    box-shadow: 0 4px 16px rgba(229,26,62,.1);
    transform: translateY(-2px);
}

/* ─── Footer: premium dark editorial ─────────────────────────────── */
/* Scoped under .tdn-footer for clean specificity over footer.css */
.tdn-footer .tdn-footer-body { background: #0a0a0a; }
.tdn-footer .tdn-footer-bottom { background: #060606; }
.tdn-footer .tdn-footer-col-title {
    font-family: var(--font-headline);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,.35);
}
.tdn-footer .tdn-footer-logo-text {
    font-family: var(--font-headline);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .05em;
}
.tdn-footer .tdn-footer-accent {
    background: linear-gradient(90deg, var(--tdn-black) 0%, #1a0a10 50%, var(--tdn-black) 100%);
    border-top: 2px solid var(--tdn-red);
    padding: 14px 0;
}
.tdn-footer .tdn-footer-accent-brand {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: rgba(255,255,255,.9);
}

/* ─── Archive page: premium grid ──────────────────────────────────── */
.tdn-archive-card {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.tdn-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tdn-archive-thumb {
    border-radius: 0;
    overflow: hidden;
}
.tdn-archive-img { transition: transform .5s ease, filter .35s ease; }
.tdn-archive-card:hover .tdn-archive-img {
    transform: scale(1.05);
    filter: saturate(1.12);
}

/* ─── Category color accents ──────────────────────────────────────── */
/* Use attribute selectors — these already have higher specificity than .tdn-badge alone */
.category-tv .tdn-badge,
a.tdn-badge[href*="/tv/"] { background: var(--cat-tv); }

.category-film .tdn-badge,
a.tdn-badge[href*="/film/"],
a.tdn-badge[href*="/movies/"] { background: var(--cat-film); }

.category-music .tdn-badge,
a.tdn-badge[href*="/music/"] { background: var(--cat-music); }

/* ─── Breaking news ticker: urgent feel ───────────────────────────── */
.tdn-ticker-track { font-weight: 600; }
.tdn-ticker-label {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .12em;
    background: rgba(0,0,0,.30); /* dark pill so label reads on red bar */
}
/* Prevent global a:hover { color: red } from turning white ticker text invisible.
   ID selector gives sufficient specificity without !important. */
#tdn-ticker,
#tdn-ticker a,
#tdn-ticker a:hover,
#tdn-ticker a:focus { color: #ffffff; }

/* ─── Breadcrumbs: editorial styling ─────────────────────────────── */
.tdn-breadcrumbs {
    padding: 14px var(--gutter) 0;
    font-size: .77rem;
    letter-spacing: .02em;
}
.tdn-bc-link {
    font-weight: 500;
    transition: color .15s;
}
.tdn-bc-current {
    font-weight: 600;
    color: var(--tdn-black);
}

/* ─── "You May Also Like" section ────────────────────────────────── */
.tdn-related {
    margin-top: 60px;
    padding-top: 8px;
}
.tdn-related .tdn-section-header { margin-bottom: 32px; }

/* ─── Mobile polish ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Landscape hero — let image scale naturally on small screens */
    .tdn-hero:not(.tdn-hero--portrait) .tdn-hero-img { height: auto; }
    .tdn-hero-title { font-size: 1.75rem; }
    /* .tdn-article-title scoped to .tdn-article above — override here without !important */
    .tdn-article .tdn-article-title { font-size: 1.65rem; }
    .tdn-hdr-dateline { display: none; }
    .tdn-article-featured--portrait { max-width: 100%; }

    /* Mobile hero: plain white + black text — remove cinematic overlays */
    .tdn-hero-content {
        background: #ffffff;
        padding: 20px 16px 24px;
    }
    .tdn-hero-title {
        text-shadow: none;
        color: #0c0c0c;
    }
    /* Remove pseudo-element overlays on mobile */
    .tdn-hero::after,
    .tdn-hero::before { display: none; }
    /* Full opacity on mobile — no performance-heavy filter animations */
    .tdn-hero-img,
    .tdn-hero:hover .tdn-hero-img {
        opacity: 1;
        filter: none;
        transform: none;
    }
}
@media (max-width: 480px) {
    .tdn-hero:not(.tdn-hero--portrait) .tdn-hero-img { height: auto; }
    .tdn-article .tdn-article-title { font-size: 1.45rem; }
    .tdn-hero-title { font-size: 1.45rem; }
}

/* ─── Subtle grain texture on hero (css-only noise) ──────────────── */
.tdn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 2;
    opacity: .4;
    mix-blend-mode: overlay;
}
