/**
 * Exit Five — single Podcast Episode page.
 *
 * Scoped under .podcast-page. Mirrors the live exitfive.com episode
 * detail layout: hero image, #NN-prefixed title, Spotify embed,
 * listen-on buttons, show notes, transcript, related episodes.
 *
 * Enqueue conditionally in functions.php via is_singular('podcast_episode').
 */

.podcast-page {
    --podcast-bg:           #ffffff;
    --podcast-ink:          #111;
    --podcast-muted:        #5b5b5b;
    --podcast-accent:       #00d563; /* exit five green */
    --podcast-accent-ink:   #062f17;
    --podcast-rule:         #e7e9ec;
    --podcast-spotify:      #1db954;
    --podcast-apple:        #fa233b;
    --podcast-youtube:      #ff0000;

    background: var(--podcast-bg);
    color: var(--podcast-ink);
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.podcast-page__container {
    max-width: 880px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ---------- Hero image ---------- */

.podcast-page__hero {
    margin-bottom: 1.75rem;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16 / 9;
}
.podcast-page__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Header ---------- */

.podcast-page__header {
    margin-bottom: 1.5rem;
}
.podcast-page__title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    text-wrap: balance;
    margin: 0 0 0.75rem;
    color: var(--podcast-ink);
}
.podcast-page__meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--podcast-muted);
    font-size: 0.95rem;
}

/* ---------- Spotify embed ---------- */

.podcast-page__player {
    margin: 1.5rem 0 1.25rem;
}
.podcast-page__player iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ---------- Listen-on buttons ---------- */

.podcast-page__listen {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}
.podcast-page__listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 80ms ease, background-color 160ms ease;
    min-height: 2.75rem;
}
.podcast-page__listen-btn::before {
    content: '▶';
    font-size: 0.75rem;
    line-height: 1;
}
.podcast-page__listen-btn:hover {
    transform: translateY(-1px);
}
.podcast-page__listen--spotify { background: var(--podcast-spotify); }
.podcast-page__listen--apple   { background: var(--podcast-apple);   }
.podcast-page__listen--youtube { background: var(--podcast-youtube); }

/* ---------- Sections ---------- */

.podcast-page__section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--podcast-rule);
}
.podcast-page__section-title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--podcast-accent);
    margin: 0 0 1rem;
}

/* ---------- Show notes body ---------- */

.podcast-page__body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #222;
}
.podcast-page__body p,
.podcast-page__body ul,
.podcast-page__body ol,
.podcast-page__body blockquote {
    margin: 0 0 1rem;
}
.podcast-page__body h2,
.podcast-page__body h3 {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    line-height: 1.25;
}
.podcast-page__body h2 { font-size: 1.5rem; }
.podcast-page__body h3 { font-size: 1.25rem; }
.podcast-page__body a {
    color: var(--podcast-accent-ink);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}
.podcast-page__body a:hover {
    color: #000;
}
.podcast-page__body ul,
.podcast-page__body ol {
    padding-left: 1.5rem;
}
.podcast-page__body li {
    margin-bottom: 0.25rem;
}
.podcast-page__body blockquote {
    padding: 0.75rem 1.25rem;
    border-left: 3px solid var(--podcast-accent);
    background: #f8faf9;
    color: #2b2b2b;
}
.podcast-page__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- Transcript ---------- */

.podcast-page__transcript {
    border-radius: 12px;
}
.podcast-page__transcript-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    list-style: none;
}
.podcast-page__transcript-toggle::-webkit-details-marker {
    display: none;
}
.podcast-page__transcript-hint {
    font-size: 0.85rem;
    color: var(--podcast-muted);
    font-weight: 400;
}
.podcast-page__transcript[open] .podcast-page__transcript-hint {
    visibility: hidden;
}
.podcast-page__transcript-body {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    max-height: 32rem;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    border: 1px solid var(--podcast-rule);
    border-radius: 10px;
    background: #fbfbfc;
}
.podcast-page__transcript-body p {
    margin: 0 0 0.875rem;
}

/* ---------- Newsletter CTA ---------- */

.podcast-page__cta {
    margin-top: 3.5rem;
    padding-block: 2.5rem;
    background: #0c1410;
    color: #fff;
}
.podcast-page__cta-card {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}
.podcast-page__cta-title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
    color: #fff;
}
.podcast-page__cta-copy {
    margin: 0 auto 1.25rem;
    max-width: 36rem;
    color: #cdd2cf;
    font-size: 1rem;
    line-height: 1.55;
}
.podcast-page__cta-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    background: var(--podcast-accent);
    color: var(--podcast-accent-ink);
    font-weight: 700;
    text-decoration: none;
    transition: transform 80ms ease;
    min-height: 2.75rem;
    line-height: 1;
}
.podcast-page__cta-btn:hover {
    transform: translateY(-1px);
}

/* ---------- Related episodes ---------- */

.podcast-page__related {
    padding-block: 3rem;
    background: #f7f8f8;
}
.podcast-page__related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.podcast-page__related-title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}
.podcast-page__related-all {
    color: var(--podcast-ink);
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
}

.podcast-page__related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) {
    .podcast-page__related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .podcast-page__related-grid { grid-template-columns: repeat(4, 1fr); }
}

.podcast-page__related-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.podcast-page__related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.podcast-page__related-card-media {
    aspect-ratio: 16 / 9;
    background: #efefef;
    overflow: hidden;
}
.podcast-page__related-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.podcast-page__related-card-body {
    padding: 0.875rem 1rem 1.125rem;
}
.podcast-page__related-card-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--podcast-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.podcast-page__related-card-title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--podcast-ink);
}
.podcast-page__related-card-meta {
    display: flex;
    gap: 0.4rem;
    color: var(--podcast-muted);
    font-size: 0.85rem;
}
