/* ================================================================
   PODCAST PAGE STYLES — 51 Insights
   ================================================================ */

/* ================================================================
   PODCAST HERO — split layout (text left, cover right)
   ================================================================ */
.podcast-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.podcast-hero-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 3;
}
.podcast-hero-content {
    position: relative;
    max-width: 520px;
}
.podcast-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

/* Live recording pulse dot */
.badge-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53e3e;
    position: relative;
    flex-shrink: 0;
}
.badge-live-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53e3e;
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}

.podcast-hero h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 20px;
}
.podcast-hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 0 32px;
    line-height: 1.6;
}
.podcast-hero-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.podcast-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(10,6,229,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
[data-theme="light"] .podcast-hero-glow {
    background: radial-gradient(ellipse, rgba(10,6,229,0.04) 0%, transparent 70%);
}

/* Platform links */
.podcast-platforms {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.podcast-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-faint);
    padding: 4px 0;
    min-height: 44px;
    transition: color 0.2s var(--ease-out);
}
.podcast-platform-link:hover {
    color: var(--text-primary);
}
.podcast-platform-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}
.podcast-platform-link svg {
    width: 16px;
    height: 16px;
}

/* Podcast cover (right side) */
.podcast-hero-visual {
    display: flex;
    justify-content: center;
}
.podcast-cover-wrap {
    width: 320px;
    position: relative;
    perspective: 800px;
}
.podcast-cover-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.2),
        0 12px 40px rgba(0,0,0,0.3),
        0 30px 80px rgba(10,6,229,0.1);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    transform-origin: center center;
}
.podcast-cover-wrap:hover .podcast-cover-img {
    transform: rotateY(-5deg) rotateX(3deg) translateY(-6px) scale(1.03);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        0 20px 60px rgba(0,0,0,0.35),
        0 40px 100px rgba(10,6,229,0.18);
}
.podcast-cover-wrap:focus-within .podcast-cover-img {
    transform: rotateY(-5deg) rotateX(3deg) translateY(-6px) scale(1.03);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        0 20px 60px rgba(0,0,0,0.35),
        0 40px 100px rgba(10,6,229,0.18);
}
[data-theme="light"] .podcast-cover-img {
    box-shadow:
        0 2px 8px rgba(0,0,0,0.08),
        0 12px 40px rgba(0,0,0,0.1),
        0 30px 80px rgba(10,6,229,0.05);
}
[data-theme="light"] .podcast-cover-wrap:hover .podcast-cover-img {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.1),
        0 20px 60px rgba(0,0,0,0.12),
        0 40px 100px rgba(10,6,229,0.08);
}

/* ================================================================
   EPISODE TOGGLE TABS
   ================================================================ */
.episodes-section {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.episodes-toggle {
    display: inline-flex;
    border-radius: var(--radius-pill);
    background: var(--elevated);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    padding: 3px;
}
.episodes-toggle-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    min-height: 40px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}
.episodes-toggle-btn:hover {
    color: var(--text-primary);
}
.episodes-toggle-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.episodes-toggle-btn.is-active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10,6,229,0.3);
}
[data-theme="light"] .episodes-toggle-btn.is-active {
    box-shadow: 0 2px 8px rgba(10,6,229,0.2);
}

/* ================================================================
   EPISODE GRID
   ================================================================ */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.episode-card {
    display: block;
    background: var(--elevated);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    overflow: hidden;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    color: inherit;
}
.episode-card:hover {
    box-shadow: inset 0 0 0 1px var(--border-default), 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
.episode-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    box-shadow: inset 0 0 0 1px var(--border-default), 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
[data-theme="light"] .episode-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(0,0,0,0.06);
}
[data-theme="light"] .episode-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(0,0,0,0.1);
}
[data-theme="light"] .episode-card:focus-visible {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* Thumbnail */
.episode-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface);
}
.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.35s ease, transform 0.35s ease;
}
.episode-card:hover .episode-thumb img {
    filter: grayscale(0);
    transform: scale(1.03);
}
.episode-card:focus-visible .episode-thumb img {
    filter: grayscale(0);
    transform: scale(1.03);
}
.episode-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-out);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.episode-card:hover .episode-play-overlay {
    background: rgba(10,6,229,0.85);
    transform: translate(-50%, -50%) scale(1.08);
}
.episode-play-overlay svg {
    width: 16px;
    height: 16px;
    color: #fff;
    margin-left: 2px;
}
.episode-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.7);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1.4;
}

/* Card body */
.episode-body {
    padding: 16px;
}
.episode-guest-info {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.episode-title {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 8px;
}
.episode-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
    line-height: 1.4;
}

/* ================================================================
   GUEST CTA SECTION
   ================================================================ */
.guest-cta {
    padding: 100px 0;
    position: relative;
}
.guest-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}
.guest-cta h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    margin-bottom: 16px;
}
.guest-cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Guest CTA Stats */
.guest-cta-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
}
.guest-cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.guest-cta-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.guest-cta-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.guest-cta-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* Guest CTA Logos */
.guest-cta-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.guest-cta-logos img.trust-logo {
    height: auto;
    width: auto;
    max-height: 24px;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.4;
    transition: opacity 0.3s var(--ease-out);
}
.guest-cta-logos img.trust-logo:hover {
    opacity: 0.7;
}
[data-theme="light"] .guest-cta-logos img.trust-logo {
    filter: grayscale(1) brightness(0);
    opacity: 0.35;
}
[data-theme="light"] .guest-cta-logos img.trust-logo:hover {
    opacity: 0.6;
}
.guest-cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(10,6,229,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
[data-theme="light"] .guest-cta-glow {
    background: radial-gradient(ellipse, rgba(10,6,229,0.03) 0%, transparent 70%);
}

/* Guest CTA button focus */
.guest-cta .btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

/* ================================================================
   DARK THEME — boost contrast for secondary text
   ================================================================ */
/* Toggle buttons — #666 is too faint on dark bg */
[data-theme="dark"] .episodes-toggle-btn {
    color: #aaa;
}
[data-theme="dark"] .episodes-toggle-btn:hover {
    color: #fff;
}
/* Platform links — #444 nearly invisible */
[data-theme="dark"] .podcast-platform-link {
    color: #999;
}
[data-theme="dark"] .podcast-platform-link:hover {
    color: #fff;
}
/* Episode card guest info & dates */
[data-theme="dark"] .episode-guest-info {
    color: #999;
}
[data-theme="dark"] .episode-date {
    color: #999;
}

/* ── Hero badge — stronger presence in dark mode ── */
[data-theme="dark"] .podcast-hero-badge {
    color: #d0d0d0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
}

/* ── Podcast cover — ambient brand glow in dark mode ── */
[data-theme="dark"] .podcast-cover-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(
        ellipse at center,
        rgba(10,6,229,0.25) 0%,
        rgba(88,199,247,0.08) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(30px);
}
[data-theme="dark"] .podcast-cover-img {
    box-shadow:
        0 2px 8px rgba(0,0,0,0.4),
        0 12px 40px rgba(0,0,0,0.5),
        0 0 60px rgba(10,6,229,0.12),
        0 0 120px rgba(88,199,247,0.06);
}
[data-theme="dark"] .podcast-cover-wrap:hover .podcast-cover-img {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.45),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(10,6,229,0.18),
        0 0 140px rgba(88,199,247,0.08);
}

/* ── Hero background glow — richer in dark mode ── */
[data-theme="dark"] .podcast-hero-glow {
    background: radial-gradient(ellipse, rgba(10,6,229,0.14) 0%, rgba(88,199,247,0.03) 50%, transparent 70%);
}

/* ── Episode cards — subtle lift in dark mode ── */
[data-theme="dark"] .episode-card {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .episode-card:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(10,6,229,0.06);
}

/* ── Guest CTA — enhanced in dark mode ── */
[data-theme="dark"] .guest-cta-glow {
    background: radial-gradient(ellipse, rgba(10,6,229,0.1) 0%, rgba(88,199,247,0.02) 50%, transparent 70%);
}
/* Guest CTA stat labels */
[data-theme="dark"] .guest-cta-stat-label {
    color: #999;
}
[data-theme="dark"] .guest-cta-stat-divider {
    background: rgba(255,255,255,0.08);
}

/* ── Section borders — softer in dark mode ── */
[data-theme="dark"] .episodes-section {
    border-top-color: rgba(255,255,255,0.06);
    border-bottom-color: rgba(255,255,255,0.06);
}

/* ── Active toggle — richer glow in dark mode ── */
[data-theme="dark"] .episodes-toggle-btn.is-active {
    box-shadow: 0 2px 12px rgba(10,6,229,0.4), 0 0 20px rgba(10,6,229,0.15);
}

/* ================================================================
   LIGHT THEME — explicit overrides for all podcast elements
   ================================================================ */
[data-theme="light"] .episodes-section {
    background: var(--surface);
    border-top-color: var(--border-subtle);
    border-bottom-color: var(--border-subtle);
}
[data-theme="light"] .episodes-toggle {
    background: var(--elevated);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}
/* Episodes header & toggle — boost contrast */
[data-theme="light"] .episodes-section .section-heading {
    color: var(--text-primary);
}
[data-theme="light"] .episodes-toggle-btn {
    color: #555;
}
[data-theme="light"] .episodes-toggle-btn:hover {
    color: var(--text-primary);
}

/* Platform links — much more visible */
[data-theme="light"] .podcast-platform-link {
    color: #666;
}
[data-theme="light"] .podcast-platform-link:hover {
    color: var(--text-primary);
}

/* Hero badge */
[data-theme="light"] .podcast-hero-badge {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
    color: #555;
}

/* Episode card text — guest info, dates need to be readable */
[data-theme="light"] .episode-guest-info {
    color: #666;
}
[data-theme="light"] .episode-date {
    color: #666;
}
[data-theme="light"] .episode-title {
    color: #111;
}

/* Guest CTA stat labels */
[data-theme="light"] .guest-cta-stat-label {
    color: #777;
}
[data-theme="light"] .guest-cta-stat-divider {
    background: rgba(0,0,0,0.12);
}

/* ================================================================
   PODCAST-SPECIFIC RESPONSIVE
   ================================================================ */

/* Tablet landscape and below */
@media (max-width: 900px) {
    .podcast-hero {
        padding: 100px 0 56px;
    }
    .podcast-hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .podcast-hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .podcast-hero-visual {
        order: -1;
    }
    .podcast-cover-wrap {
        width: 240px;
    }
    .podcast-hero-ctas {
        justify-content: center;
    }
    .podcast-platforms {
        justify-content: center;
    }
    .podcast-hero-sub {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
        max-width: 480px;
    }
    .episodes-section {
        padding: 56px 0;
    }
    .episodes-grid {
        grid-template-columns: 1fr 1fr;
    }
    .episodes-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .guest-cta {
        padding: 72px 0;
    }
    .guest-cta-stats {
        gap: 24px;
    }
    .guest-cta-stat-num {
        font-size: 20px;
    }
    .guest-cta-logos {
        gap: 20px;
    }
    .guest-cta-logos img.trust-logo {
        max-height: 20px;
    }
}

/* Tablet portrait and smaller phones */
@media (max-width: 640px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    .episode-card {
        max-width: 100%;
    }
    .guest-cta-stats {
        gap: 20px;
    }
    .guest-cta-stat-num {
        font-size: 18px;
    }
    .guest-cta-stat-divider {
        height: 28px;
    }
    .guest-cta-logos img.trust-logo {
        max-height: 18px;
    }
    .guest-cta-logos {
        gap: 18px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .podcast-hero h2 {
        font-size: 26px;
        line-height: 1.18;
    }
    .podcast-hero-sub {
        font-size: 14px;
        max-width: 100%;
    }
    .podcast-cover-wrap {
        width: 200px;
    }
    .podcast-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .podcast-hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    .episode-body {
        padding: 14px;
    }
    .episode-title {
        font-size: 13px;
    }
    .episode-play-overlay {
        width: 40px;
        height: 40px;
    }
    .episode-play-overlay svg {
        width: 14px;
        height: 14px;
    }
    .guest-cta h2 {
        font-size: 24px;
    }
    .guest-cta-sub {
        font-size: 14px;
    }
    .podcast-platforms {
        gap: 16px;
    }
    .podcast-platform-link {
        font-size: 11px;
    }
    .guest-cta-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .guest-cta-stat-divider {
        display: none;
    }
    .guest-cta-stat {
        min-width: 80px;
    }
    .guest-cta-logos {
        gap: 16px;
    }
    .guest-cta-logos img.trust-logo {
        max-height: 16px;
    }
    .episodes-header {
        gap: 12px;
    }
}

/* iPhone SE / very small screens */
@media (max-width: 375px) {
    .podcast-hero h2 {
        font-size: 24px;
    }
    .podcast-hero {
        padding: 88px 0 40px;
    }
    .podcast-hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    .podcast-cover-wrap {
        width: 180px;
    }
    .episode-title {
        font-size: 12px;
    }
    .episode-guest-info {
        font-size: 9px;
    }
    .guest-cta h2 {
        font-size: 22px;
    }
    .guest-cta-stat-num {
        font-size: 16px;
    }
    .guest-cta-stat-label {
        font-size: 10px;
    }
}

/* Absolute minimum */
@media (max-width: 320px) {
    .podcast-hero h2 {
        font-size: 22px;
    }
    .episode-body {
        padding: 12px;
    }
    .episode-title {
        font-size: 11px;
    }
    .guest-cta h2 {
        font-size: 20px;
    }
    .podcast-hero-ctas .btn {
        font-size: 13px;
        height: 44px;
    }
    .podcast-platforms {
        gap: 12px;
    }
    .guest-cta-logos img.trust-logo {
        max-height: 14px;
    }
}
