/* ==========================================================
   RDH FOCUS - NPR Inspired Editorial Digital Journalism Theme
   ========================================================== */
:root {
    --bg-main: #121212;
    --bg-surface: #1a1a1a;
    --bg-card: #202020;
    --bg-hover: #262626;
    
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --brand-blue: #0284c7;
    --brand-blue-hover: #0369a1;
    --brand-red: #ef4444;
    --brand-gold: #f59e0b;

    --border-color: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.2);

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.npr-dark-theme {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   TOP BAR & MASTHEAD
   ========================================================== */
.top-broadcast-bar {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border-color);
    padding: 7px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edition-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-signal-dot {
    width: 7px;
    height: 7px;
    background-color: var(--brand-red);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-weight: 600;
}

.top-bar-link:hover {
    color: #ffffff;
}

.main-masthead {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.desktop-navigation {
    flex: 1;
    margin-left: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 22px;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-search-trigger {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-search-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px;
    cursor: pointer;
}

.mobile-nav-drawer {
    display: none;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--brand-blue);
    padding: 14px 0;
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-link {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: 6px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-hover);
    color: #ffffff;
}

/* ==========================================================
   HOMEPAGE LEAD HERO (SPLIT GRID - NPR STYLE)
   ========================================================= */
.lead-hero-section {
    padding: 34px 0 28px 0;
    border-bottom: 1px solid var(--border-color);
}

.lead-split-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* Left Lead Story */
.lead-main-card {
    display: flex;
    flex-direction: column;
}

.lead-media-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.lead-media-img {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lead-main-card:hover .lead-media-img {
    transform: scale(1.02);
}

.photo-credit-badge {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}

.lead-meta-top {
    margin-bottom: 8px;
}

.category-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-red);
}

.category-tag.blue { color: var(--brand-blue); }
.category-tag.gold { color: var(--brand-gold); }

.lead-headline {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 12px;
    color: #ffffff;
}

.lead-headline a:hover {
    color: #93c5fd;
}

.lead-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.lead-byline {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Right Rail Story Stack */
.lead-right-rail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rail-story-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.rail-story-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rail-story-content {
    flex: 1;
}

.rail-story-thumb-wrap {
    width: 104px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.rail-story-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.rail-story-item:hover .rail-story-thumb {
    transform: scale(1.05);
}

.rail-story-headline {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.32;
    margin: 6px 0 8px 0;
    color: #ffffff;
}

.rail-story-headline a:hover {
    color: #93c5fd;
}

.rail-sublink {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-top: 6px;
    padding-left: 12px;
    border-left: 2px solid var(--brand-blue);
}

.rail-sublink:hover {
    color: #ffffff;
}

/* Audio Player Pill Button (NPR Signature Style) */
.audio-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.audio-pill-btn {
    background: #1e3a5f;
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.audio-pill-btn:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.audio-secondary-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
}

.audio-secondary-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   SECONDARY 4-COLUMN CARDS ROW (FROM SCREENSHOT)
   ========================================================== */
.secondary-grid-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-color);
}

.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.column-story-card {
    display: flex;
    flex-direction: column;
}

.card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    margin-bottom: 12px;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.column-story-card:hover .card-thumb-img {
    transform: scale(1.04);
}

.card-headline {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    margin: 4px 0 8px 0;
}

.card-headline a:hover {
    color: #93c5fd;
}

.card-byline-row {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
}

/* ==========================================================
   AUDIO & PODCASTS FEATURE BANNER
   ========================================================== */
.podcasts-banner-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.podcasts-banner-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.podcast-banner-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 6px 0 10px 0;
}

.podcasts-list-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.podcast-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.podcast-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.podcast-item-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* ==========================================================
   STICKY BOTTOM AUDIO PLAYER
   ========================================================== */
.sticky-audio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-top: 2px solid var(--brand-blue);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    padding: 12px 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sticky-audio-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.audio-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.audio-signal-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: livePulse 1.2s infinite;
}

.audio-series-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #38bdf8;
    display: block;
}

.audio-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-audio-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.btn-audio-toggle:hover {
    transform: scale(1.06);
    background: var(--brand-blue-hover);
}

.btn-audio-seek {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.audio-time-display {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 80px;
}

.btn-audio-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* ==========================================================
   ARTICLE READING VIEW (EDITORIAL BROADSHEET)
   ========================================================== */
.article-page-wrap {
    padding: 40px 0 80px 0;
}

.article-header {
    max-width: 840px;
    margin: 0 auto 28px auto;
}

.article-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin: 12px 0 16px 0;
}

.article-hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-byline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.article-main-image-wrap {
    max-width: 980px;
    margin: 0 auto 36px auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.article-main-image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.article-image-caption {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 12px;
    background: #181818;
    font-style: italic;
}

.article-body-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    max-width: 980px;
    margin: 0 auto;
}

.article-content-body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.85;
    color: #e5e7eb;
}

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

.article-content-body p.lead {
    font-size: 21px;
    line-height: 1.7;
    font-weight: 500;
    color: #ffffff;
}

.article-content-body h3 {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 34px 0 14px 0;
}

.editorial-callout {
    background: var(--bg-surface);
    border-left: 4px solid var(--brand-blue);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.editorial-callout blockquote {
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: #f3f4f6;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-box-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-blue);
}

/* ==========================================================
   SEARCH MODAL
   ========================================================== */
.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal-box {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.search-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.search-modal-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.search-modal-form input {
    flex: 1;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.search-modal-form button {
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.search-suggestions {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-suggestions a {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    padding: 4px 10px;
    border-radius: 14px;
}

.search-suggestions a:hover {
    color: #ffffff;
    background: var(--brand-blue);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.main-footer {
    background: #0d0d0d;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    margin-top: 60px;
}

.footer-top-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo-img {
    height: 38px;
    margin-bottom: 14px;
}

.footer-mission-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-social-links a {
    color: #93c5fd;
    font-weight: 600;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-nav-list a:hover {
    color: #ffffff;
}

.newsletter-signup-form {
    display: flex;
    gap: 8px;
}

.newsletter-signup-form input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.newsletter-signup-form button {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 14px;
}

.footer-legal-links {
    display: flex;
    gap: 16px;
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES (MOBILE & TABLET EXCELLENCE)
   ========================================================== */
@media (max-width: 992px) {
    .desktop-navigation {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lead-split-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .podcasts-list-row {
        grid-template-columns: 1fr;
    }
    .article-body-layout {
        grid-template-columns: 1fr;
    }
    .footer-top-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .top-broadcast-bar {
        font-size: 11px;
    }
    .top-bar-right {
        display: none;
    }
    .masthead-inner {
        height: 60px;
    }
    .brand-logo-img {
        height: 34px;
    }
    .search-btn-text {
        display: none;
    }
    .btn-search-trigger {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .lead-headline {
        font-size: 24px;
    }
    .article-hero-title {
        font-size: 28px;
    }
    .article-hero-subtitle {
        font-size: 17px;
    }
    .four-col-grid {
        grid-template-columns: 1fr;
    }
    .footer-top-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-legal-links {
        flex-wrap: wrap;
        gap: 10px;
    }
    .sticky-audio-inner {
        flex-wrap: wrap;
    }
    .audio-time-display {
        display: none;
    }
}
