/* ═══════════════════════════════════════════════════════════
   Podcast Freebie – page-podcast-freebie.php
   Branding: Membership Geeks
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
    --pf-purple:      #402497;
    --pf-dark-purple: #1d035a;
    --pf-pink:        #eb1a57;
    --pf-pink-dark:   #d11464;
    --pf-teal:        #19d3c5;
    --pf-orange:      #ff9f00;
    --pf-bg:          #f8f8f8;
    --pf-bg-light:    #f3f3f3;
    --pf-text:        #403f3f;
    --pf-white:       #ffffff;
    --pf-radius:      15px;
    --pf-radius-sm:   10px;
    --pf-font-head:   'brandon-grotesque', sans-serif;
    --pf-font-body:   'Lato', sans-serif;
}

/* ── Unlock state: reuse hero_page header, trim hero space */
#hero_header.pf-hero-header-only {
    padding-bottom: 40px;
}

/* ── Opt-in state: hide footer menus, keep bottom bar ──── */
.pf-wrap--optin ~ #site_footer .footer_menus {
    display: none;
}

/* ── Layout ──────────────────────────────────────────────── */
.pf-wrap {
    font-family: var(--pf-font-body);
    color: var(--pf-text);
    -webkit-font-smoothing: antialiased;
}

.pf-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════
   EPISODE PLAYER (opt-in state, above the form)
   ═══════════════════════════════════════════════════════════ */

.pf-player {
    background: #f1f3f4;
    padding: 0;
}

.pf-player__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pf-player__embed {
    overflow: hidden;
    height: 200px;
}

.pf-player__embed iframe {
    width: 100%;
    height: 200px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   OPT-IN STATE
   ═══════════════════════════════════════════════════════════ */

.pf-optin {
    background: linear-gradient(135deg, var(--pf-dark-purple) 0%, var(--pf-purple) 100%);
    padding: 70px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.pf-optin__layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.pf-optin__image {
    flex: 0 0 380px;
}

.pf-optin__image img {
    width: 100%;
    border-radius: var(--pf-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pf-optin__content {
    flex: 1;
    color: var(--pf-white);
}

.pf-optin__ep-label {
    display: inline-block;
    font-family: var(--pf-font-head);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pf-teal);
    margin-bottom: 12px;
}

.pf-optin__title {
    font-family: var(--pf-font-head);
    font-weight: 900;
    font-size: 42px;
    line-height: 1.15;
    color: var(--pf-white);
    margin-bottom: 20px;
}

.pf-optin__blurb {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

/* ── Form ────────────────────────────────────────────────── */
.pf-form__fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.pf-form__input,
input[type="text"].pf-form__input,
input[type="email"].pf-form__input {
    flex: 1;
    padding: 16px 20px;
    font-family: var(--pf-font-body);
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--pf-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--pf-white);
    transition: border-color 0.3s;
}

.pf-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pf-form__input:focus {
    outline: none;
    border-color: var(--pf-teal);
    background: rgba(255, 255, 255, 0.15);
}

.pf-form__submit {
    width: 100%;
    padding: 18px 30px;
    font-family: var(--pf-font-head);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--pf-white);
    background: var(--pf-pink);
    border: none;
    border-radius: var(--pf-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.pf-form__submit:hover {
    background: var(--pf-pink-dark);
}

.pf-form__disclaimer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   UNLOCKED – DOWNLOAD STRIP
   ═══════════════════════════════════════════════════════════ */

.pf-download-strip {
    background: linear-gradient(135deg, var(--pf-dark-purple) 0%, var(--pf-purple) 100%);
    padding: 50px 0;
}

.pf-download-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pf-download-strip__label {
    display: inline-block;
    font-family: var(--pf-font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pf-teal);
    margin-bottom: 8px;
}

.pf-download-strip__title {
    font-family: var(--pf-font-head);
    font-weight: 900;
    font-size: 32px;
    color: var(--pf-white);
    margin-bottom: 4px;
}

.pf-download-strip__ep {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.pf-download-btn {
    flex-shrink: 0;
    padding: 18px 40px;
    font-family: var(--pf-font-head);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--pf-white);
    background: var(--pf-pink);
    border: none;
    border-radius: var(--pf-radius);
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
}

.pf-download-btn:hover {
    background: var(--pf-pink-dark);
    color: var(--pf-white);
}

/* ═══════════════════════════════════════════════════════════
   UNLOCKED – ARCHIVE GRID
   ═══════════════════════════════════════════════════════════ */

.pf-archive {
    background: var(--pf-bg);
    padding: 60px 0 80px;
}

.pf-archive__heading {
    font-family: var(--pf-font-head);
    font-weight: 900;
    font-size: 32px;
    text-align: center;
    color: var(--pf-dark-purple);
    margin-bottom: 8px;
}

.pf-archive__subheading {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-bottom: 40px;
}

.pf-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ── Card ────────────────────────────────────────────────── */
.pf-card {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.pf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.pf-card__thumb {
    aspect-ratio: 210 / 297;
    overflow: hidden;
}

.pf-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-card__body {
    padding: 20px 24px 24px;
}

.pf-card__ep {
    display: inline-block;
    font-family: var(--pf-font-head);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pf-teal);
    margin-bottom: 6px;
}

.pf-card__title {
    font-family: var(--pf-font-head);
    font-weight: 900;
    font-size: 20px;
    line-height: 1.3;
    color: var(--pf-dark-purple);
    margin-bottom: 16px;
}

.pf-card__btn {
    padding: 10px 20px;
    font-family: var(--pf-font-head);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--pf-white);
    background: var(--pf-pink);
    border: none;
    border-radius: var(--pf-radius-sm);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.pf-card__btn:hover {
    background: var(--pf-purple);
    color: var(--pf-white);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .pf-optin__layout {
        flex-direction: column;
        text-align: center;
    }

    .pf-optin__image {
        flex: 0 0 auto;
        max-width: 320px;
    }

    .pf-optin__title {
        font-size: 32px;
    }

    .pf-form__fields {
        flex-direction: column;
    }

    .pf-download-strip__inner {
        flex-direction: column;
        text-align: center;
    }

    .pf-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 580px) {
    .pf-optin {
        padding: 50px 0;
    }

    .pf-optin__title {
        font-size: 28px;
    }

    .pf-archive__grid {
        grid-template-columns: 1fr;
    }

    .pf-download-strip__title {
        font-size: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PODCAST STRIP (blog posts)
   ═══════════════════════════════════════════════════════════ */

.podcast-strip {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Listen column ───────────────────────────────────────── */
.podcast-strip__listen {
    background: linear-gradient(135deg, #1d035a 0%, #402497 100%);
    padding: 30px;
    display: flex;
    align-items: center;
}

.podcast-strip--has-freebie .podcast-strip__listen {
    flex: 3;
}

.podcast-strip--has-freebie .podcast-strip__icon {
    display: none;
}

.podcast-strip:not(.podcast-strip--has-freebie) .podcast-strip__listen {
    flex: 1;
}

.podcast-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 16px;
    color: #19d3c5;
    margin-bottom: 10px;
}

.podcast-strip__heading {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.podcast-strip__headphones {
    flex-shrink: 0;
    opacity: 0.7;
}

.podcast-strip__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podcast-strip__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
    line-height: 1;
}

.podcast-strip__btn:hover {
    transform: translateY(-1px);
}

.podcast-strip__btn svg {
    flex-shrink: 0;
}

.podcast-strip__btn--play {
    background: #eb1a57;
    color: #fff;
}

.podcast-strip__btn--play:hover {
    background: #d11464;
    color: #fff;
}

.podcast-strip__btn--subscribe {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.podcast-strip__btn--subscribe:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.podcast-strip__btn--transcript {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.podcast-strip__btn--transcript:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ── Freebie CTA column ──────────────────────────────────── */
.podcast-strip__freebie {
    flex: 7;
    background: linear-gradient(135deg, #eb1a57 0%, #1d035a 100%);
    padding: 30px 40px;
    display: flex;
    align-items: center;
}

.podcast-strip__freebie-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.podcast-strip__freebie-thumb {
    flex: 0 0 120px;
}

.podcast-strip__freebie-thumb img {
    width: 120px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.podcast-strip__freebie-content {
    flex: 1;
}

.podcast-strip__freebie-label {
    display: inline-block;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffc43a;
    margin-bottom: 6px;
}

.podcast-strip__freebie-title {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 14px;
}

.podcast-strip__freebie-btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1d035a;
    background: #ffc43a;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    line-height: 1;
}

.podcast-strip__freebie-btn:hover {
    background: #ff9f00;
    color: #1d035a;
    transform: translateY(-1px);
}

/* ── Without freebie: compact centred bar with accents ───── */
.podcast-strip:not(.podcast-strip--has-freebie) {
    position: relative;
    overflow: hidden;
}

.podcast-strip:not(.podcast-strip--has-freebie)::before,
.podcast-strip:not(.podcast-strip--has-freebie)::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.podcast-strip:not(.podcast-strip--has-freebie)::before {
    width: 200px;
    height: 200px;
    background: #eb1a57;
    top: -80px;
    right: -40px;
}

.podcast-strip:not(.podcast-strip--has-freebie)::after {
    width: 150px;
    height: 150px;
    background: #19d3c5;
    bottom: -60px;
    left: -30px;
}

.podcast-strip:not(.podcast-strip--has-freebie) .podcast-strip__listen {
    flex: 1;
    padding: 20px 30px;
}

.podcast-strip:not(.podcast-strip--has-freebie) .podcast-strip__icon {
    display: none;
}

.podcast-strip:not(.podcast-strip--has-freebie) .podcast-strip__listen-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.podcast-strip:not(.podcast-strip--has-freebie) .podcast-strip__heading {
    margin-bottom: 0;
    white-space: nowrap;
}

.podcast-strip:not(.podcast-strip--has-freebie) .podcast-strip__buttons {
    flex-direction: row;
    flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .podcast-strip {
        flex-direction: column;
    }

    .podcast-strip__listen-inner {
        text-align: center;
    }

    .podcast-strip__buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .podcast-strip__freebie-inner {
        flex-direction: column;
        text-align: center;
    }

    .podcast-strip__freebie-thumb {
        flex: 0 0 auto;
    }
}

@media (max-width: 580px) {
    .podcast-strip__buttons {
        flex-direction: column;
    }

    .podcast-strip__freebie-title {
        font-size: 18px;
    }
}
