/* ═══════════════════════════════════════════════════════════════════
   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; }
body:not(.single) #tdn-progress-bar { display: none; }

/* ─── 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-black);
    height: 28px;
    display: flex;
    align-items: center;
}
.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: rgba(255,255,255,.45);
    display: flex;
    align-items: center;
    gap: 12px;
}
.tdn-hdr-dateline-left span:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    color: rgba(255,255,255,.2);
}
.tdn-hdr-dateline-edition {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--tdn-gold-lt);
    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 */
.tdn-hdr-nav {
    background: var(--tdn-black) !important;
    height: 40px;
    box-shadow: none !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
}
.tdn-hdr-nav-links a {
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: rgba(255,255,255,.75) !important;
    transition: color .15s, background .15s !important;
}
.tdn-hdr-nav-links a:hover,
.tdn-hdr-nav-links a.current {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
}
.tdn-hdr-nav-links a::after {
    background: var(--tdn-red) !important;
}

/* ─── Homepage: cinematic hero ────────────────────────────────────── */
.tdn-hero {
    position: relative;
    overflow: hidden;
}
.tdn-hero-img {
    height: 580px !important;
    object-fit: cover;
    opacity: .88 !important;
    filter: saturate(1.1);
    transition: opacity .6s ease, transform .8s ease, filter .6s ease !important;
}
.tdn-hero:hover .tdn-hero-img {
    opacity: .78 !important;
    transform: scale(1.04) !important;
    filter: saturate(1.2) !important;
}
/* Portrait hero: nuke the fixed height so the image can breathe.
   These must beat the height:580px !important above — achieved via
   being later in the cascade AND using !important with portrait selector. */
.tdn-hero--portrait .tdn-hero-img {
    height: auto !important;
    max-height: 82vh !important;
    object-fit: contain !important;
}
.tdn-hero--portrait:hover .tdn-hero-img {
    transform: none !important;
    filter: none !important;
}
/* 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%
    ) !important;
    padding: 80px var(--gutter) 44px !important;
}
/* Bigger, more cinematic hero title */
.tdn-hero-title {
    font-size: clamp(2rem, 3.8vw, 3.1rem) !important;
    letter-spacing: -.03em !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
    max-width: 860px !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
/* Red accent line before byline */
.tdn-hero-meta {
    margin-bottom: 16px !important;
}

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

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

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

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

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

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

/* Spotlight card: red left border accent on hover */
.tdn-spotlight-card {
    transition: transform .2s ease;
}
.tdn-spotlight-card:hover {
    transform: translateY(-2px);
}

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

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

/* ─── Sidebar: editorial sidebar styling ──────────────────────────── */
.tdn-sidebar-widget-title {
    font-family: var(--font-headline) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    border-bottom: 3px solid var(--tdn-black) !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
    position: relative;
}
.tdn-sidebar-widget-title::before {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 32px; height: 3px;
    background: var(--tdn-red);
}

/* Sidebar post thumbnails: cinematic */
.tdn-sidebar-post-thumb {
    width: 78px !important;
    min-width: 78px !important;
    height: 58px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tdn-sidebar-post-img {
    transition: transform .4s ease, filter .3s ease !important;
}
.tdn-sidebar-post-thumb:hover .tdn-sidebar-post-img {
    transform: scale(1.1) !important;
    filter: saturate(1.15) !important;
}
.tdn-sidebar-post-title {
    font-size: .88rem !important;
    line-height: 1.38 !important;
    letter-spacing: -.008em;
}

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

/* ─── Article content: premium reading ────────────────────────────── */
.tdn-article-content {
    font-size: 1.07rem !important;
    line-height: 1.82 !important;
    letter-spacing: .01em;
}
.tdn-article-content h2 {
    font-size: 1.6rem !important;
    letter-spacing: -.02em !important;
    margin: 40px 0 16px !important;
    position: relative;
    padding-bottom: 12px;
}
.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-content h3 {
    font-size: 1.25rem !important;
    letter-spacing: -.015em !important;
}
.tdn-article-content p { margin-bottom: 24px !important; }

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

/* ─── Post nav: bigger, more editorial ────────────────────────────── */
.tdn-post-nav { margin-top: 40px !important; padding-top: 32px !important; }
.tdn-post-nav-title {
    font-size: 1rem !important;
    line-height: 1.35 !important;
    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 ─────────────────────────────── */
.tdn-footer-body { background: #0a0a0a !important; }
.tdn-footer-bottom { background: #060606 !important; }
.tdn-footer-col-title {
    font-family: var(--font-headline) !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    letter-spacing: 2.5px !important;
    color: rgba(255,255,255,.35) !important;
}
.tdn-footer-logo-text {
    font-family: var(--font-headline) !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    letter-spacing: .05em !important;
}
.tdn-footer-accent {
    background: linear-gradient(90deg, var(--tdn-black) 0%, #1a0a10 50%, var(--tdn-black) 100%) !important;
    border-top: 2px solid var(--tdn-red) !important;
    padding: 14px 0 !important;
}
.tdn-footer-accent-brand {
    font-family: var(--font-headline) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    color: rgba(255,255,255,.9) !important;
}

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

/* ─── Category color accents ──────────────────────────────────────── */
/* TV category badge */
.category-tv .tdn-badge,
a.tdn-badge[href*="/tv/"] {
    background: var(--cat-tv) !important;
}
/* Film category badge */
.category-film .tdn-badge,
a.tdn-badge[href*="/film/"],
a.tdn-badge[href*="/movies/"] {
    background: var(--cat-film) !important;
}
/* Music category badge */
.category-music .tdn-badge,
a.tdn-badge[href*="/music/"] {
    background: var(--cat-music) !important;
}

/* ─── Breaking news ticker: urgent feel ───────────────────────────── */
.tdn-ticker-track { font-weight: 600 !important; }
.tdn-ticker-label {
    font-family: var(--font-headline) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
    background: var(--tdn-red) !important;
}

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

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

/* ─── Mobile polish ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Landscape hero only — portrait has its own height logic */
    .tdn-hero:not(.tdn-hero--portrait) .tdn-hero-img { height: 420px !important; }
    .tdn-hero-title { font-size: 1.75rem !important; }
    .tdn-article-title { font-size: 1.65rem !important; }
    .tdn-hdr-dateline { display: none !important; }
    .tdn-article-featured--portrait { max-width: 100% !important; }
}
@media (max-width: 480px) {
    .tdn-hero:not(.tdn-hero--portrait) .tdn-hero-img { height: 320px !important; }
    .tdn-hero-title { font-size: 1.45rem !important; }
}

/* ─── 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;
}
