/*
 * Wild Femme Yoga — /schedule/ page
 * Loaded only on page-templates/schedule.php
 */

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.wfy-sched-hero { padding-top: clamp(140px, 18vw, 220px); }
.wfy-sched-hero__copy { max-width: 820px; }
.wfy-sched-hero__lede {
    font-family: var(--wfy-font-display);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.5;
    color: var(--wfy-ink-soft);
    margin: 1.2em 0 2em;
    font-style: italic;
    font-weight: 400;
}
.wfy-sched-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ------------------------------------------------------------------ *
 * Featured highlight strip (above schedule)
 * ------------------------------------------------------------------ */
.wfy-sched-featured { padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 8vw, 100px); }
.wfy-sched-featured__h {
    color: var(--wfy-white);
    margin: 0.4em 0 1.4em;
}
.wfy-sched-featured__h em {
    background: linear-gradient(120deg, var(--wfy-gold) 0%, var(--wfy-violet) 50%, var(--wfy-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}
.wfy-sched-featured__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 900px) {
    .wfy-sched-featured__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------ *
 * Date pill strip
 * ------------------------------------------------------------------ */
.wfy-sched-strip { padding: clamp(40px, 5vw, 64px) 0; }
/* If strip is the first thing on the page (no featured section), clear the sticky header */
.wfy-sched-featured + .wfy-sched-strip,
.wfy-sched-strip:first-of-type { padding-top: clamp(40px, 5vw, 64px); }
.wfy-main > .wfy-sched-strip:first-child { padding-top: clamp(140px, 16vw, 200px); }
.wfy-sched-strip__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 18px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--wfy-violet) transparent;
}
.wfy-sched-strip__rail::-webkit-scrollbar {
    height: 6px;
}
.wfy-sched-strip__rail::-webkit-scrollbar-thumb {
    background: var(--wfy-violet);
    border-radius: 999px;
}

.wfy-sched-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    appearance: none;
    border: 1px solid rgba(157, 78, 221, 0.25);
    background: var(--wfy-white);
    color: var(--wfy-plum-mid);
    border-radius: var(--wfy-radius-lg);
    padding: 12px 18px;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-family: var(--wfy-font-body);
    transition: transform 0.25s var(--wfy-ease), box-shadow 0.25s var(--wfy-ease), background 0.25s var(--wfy-ease), color 0.25s var(--wfy-ease), border-color 0.25s var(--wfy-ease);
    position: relative;
}
.wfy-sched-pill:hover {
    transform: translateY(-2px);
    border-color: var(--wfy-purple);
    box-shadow: var(--wfy-shadow-sm);
}
.wfy-sched-pill.is-today {
    border-color: var(--wfy-gold);
}
.wfy-sched-pill.is-active {
    background: linear-gradient(135deg, var(--wfy-plum-mid), var(--wfy-purple));
    color: var(--wfy-white);
    border-color: transparent;
    box-shadow: var(--wfy-shadow-md);
}
.wfy-sched-pill.is-active .wfy-sched-pill__mo,
.wfy-sched-pill.is-active .wfy-sched-pill__weekday {
    color: rgba(255, 255, 255, 0.85);
}
.wfy-sched-pill:not(.has-classes) {
    opacity: 0.6;
}
.wfy-sched-pill:not(.has-classes):hover {
    opacity: 0.85;
}

.wfy-sched-pill__weekday {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
}
.wfy-sched-pill__date {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--wfy-font-display);
}
.wfy-sched-pill__num {
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}
.wfy-sched-pill__mo {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
    font-weight: 600;
}
.wfy-sched-pill__count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--wfy-gold);
    color: var(--wfy-plum-deep);
    border-radius: 999px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(244, 196, 48, 0.5);
}

/* ------------------------------------------------------------------ *
 * Day panels + cards
 * ------------------------------------------------------------------ */
.wfy-sched-list { padding-top: clamp(40px, 6vw, 80px); }
.wfy-sched-day { animation: wfySchedFade 0.6s var(--wfy-ease); }
.wfy-sched-day.is-hidden { display: none; }

@keyframes wfySchedFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wfy-sched-day__head { margin-bottom: 28px; }
.wfy-sched-day__title {
    font-size: clamp(28px, 3.5vw, 44px);
    margin: 0;
    color: var(--wfy-plum-deep);
}
.wfy-sched-day__title em {
    background: linear-gradient(120deg, var(--wfy-plum-mid), var(--wfy-purple), var(--wfy-plum-mid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}
.wfy-sched-day__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.wfy-sched-day__empty {
    background: var(--wfy-white);
    border: 1px dashed rgba(157, 78, 221, 0.3);
    border-radius: var(--wfy-radius-lg);
    padding: 36px 28px;
    text-align: center;
    color: var(--wfy-mute);
}
.wfy-sched-day__empty .wfy-ritual {
    display: block;
    font-family: var(--wfy-font-ritual);
    font-style: italic;
    font-size: 22px;
    color: var(--wfy-plum-mid);
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------ *
 * Class card
 * ------------------------------------------------------------------ */
.wfy-sched-card {
    background: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    overflow: hidden;
    box-shadow: var(--wfy-shadow-sm);
    display: grid;
    grid-template-columns: 1fr;
    transition: transform 0.3s var(--wfy-ease), box-shadow 0.3s var(--wfy-ease);
}
.wfy-sched-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wfy-shadow-md);
}
.wfy-sched-card.is-featured {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 230, 242, 0.95));
    border: 1px solid rgba(244, 196, 48, 0.4);
    color: var(--wfy-ink);
}
/* Override the .wfy-section--plum color inheritance for featured cards */
.wfy-section--plum .wfy-sched-card.is-featured,
.wfy-section--plum .wfy-sched-card.is-featured p,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__excerpt {
    color: var(--wfy-ink-soft);
}
.wfy-section--plum .wfy-sched-card.is-featured h3,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__title,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__start {
    color: var(--wfy-plum-deep);
}
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__meta,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__end,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__dur,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__by,
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__loc {
    color: var(--wfy-mute);
}
.wfy-section--plum .wfy-sched-card.is-featured .wfy-sched-card__chip {
    background: var(--wfy-plum-deep);
    color: var(--wfy-gold);
}

.wfy-sched-card__media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--wfy-plum-mid), var(--wfy-purple));
    overflow: hidden;
}
.wfy-sched-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wfy-sched-card__body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wfy-sched-card__time {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--wfy-font-display);
    color: var(--wfy-plum-deep);
}
.wfy-sched-card__start {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 500;
}
.wfy-sched-card__end,
.wfy-sched-card__dur {
    font-size: 14px;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
    letter-spacing: 0.04em;
}
.wfy-sched-card__sep { color: var(--wfy-violet); }

.wfy-sched-card__title {
    font-size: clamp(22px, 2.4vw, 28px);
    margin: 0;
    color: var(--wfy-plum-deep);
    line-height: 1.2;
}

.wfy-sched-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 13px;
    color: var(--wfy-mute);
}
.wfy-sched-card__chip {
    background: var(--wfy-pink-mist);
    color: var(--wfy-plum-mid);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.wfy-sched-card__chip--virtual {
    background: linear-gradient(135deg, var(--wfy-purple), var(--wfy-violet));
    color: var(--wfy-white);
}
.wfy-sched-card__chip--inperson {
    background: var(--wfy-plum-deep);
    color: var(--wfy-gold);
}

/* Reusable widget — used inside /my-classes/ portal */
.wfy-sched-widget { display: block; }
.wfy-sched-widget .wfy-sched-strip__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 18px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--wfy-violet) transparent;
    margin-bottom: 28px;
}
.wfy-sched-widget__panels .wfy-sched-day__title {
    font-size: clamp(20px, 2.4vw, 28px);
    margin: 0 0 18px;
}
.wfy-sched-widget__panels .wfy-sched-day__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.wfy-sched-soon-inline {
    background: var(--wfy-white);
    border: 1px dashed rgba(157, 78, 221, 0.3);
    border-radius: var(--wfy-radius-lg);
    padding: 28px 24px;
    text-align: center;
    color: var(--wfy-mute);
}
.wfy-sched-soon-inline p { margin: 8px 0 0; }
.wfy-sched-card__media {
    position: relative;
}
.wfy-sched-card__format-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 11, 46, 0.85);
    color: var(--wfy-gold);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}
.wfy-sched-card__by {
    font-style: italic;
}

.wfy-sched-card__excerpt {
    margin: 4px 0 0;
    color: var(--wfy-ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.wfy-sched-card__actions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.wfy-sched-card__more {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--wfy-purple);
}
.wfy-sched-card__more:hover { color: var(--wfy-plum-deep); }

/* Featured card with thumb — image on the left at desktop */
@media (min-width: 760px) {
    .wfy-sched-card.is-featured {
        grid-template-columns: minmax(220px, 320px) 1fr;
    }
    .wfy-sched-card.is-featured .wfy-sched-card__media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 220px;
    }
}

/* Card with thumb on standard cards — image strip on top stays
   on mobile, side-by-side on tablet+ */
@media (min-width: 760px) {
    .wfy-sched-card:not(.is-featured) .wfy-sched-card__media + .wfy-sched-card__body {
        /* nothing — vertical stack is fine */
    }
}

/* ------------------------------------------------------------------ *
 * Coming soon (no upcoming classes)
 * ------------------------------------------------------------------ */
.wfy-sched-soon { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.wfy-sched-soon .wfy-btn { margin: 6px; }

/* ------------------------------------------------------------------ *
 * Tablet polish
 * ------------------------------------------------------------------ */
@media (max-width: 1023px) {
    .wfy-sched-featured { padding: clamp(120px, 14vw, 160px) 0 clamp(40px, 6vw, 70px); }
    .wfy-sched-strip { padding: clamp(28px, 4vw, 48px) 0; }
    .wfy-sched-list { padding-top: clamp(28px, 4vw, 60px); }
}

/* ------------------------------------------------------------------ *
 * Phone — app feel
 * ------------------------------------------------------------------ */
@media (max-width: 759px) {
    .wfy-sched-featured { padding: clamp(110px, 16vw, 140px) 0 clamp(30px, 5vw, 50px); }
    .wfy-sched-featured__h { font-size: clamp(28px, 8vw, 36px); }
    .wfy-sched-featured__grid { gap: 14px; }

    /* Pill rail — smooth scroll, snap to center, edge fade */
    .wfy-sched-strip__rail {
        gap: 8px;
        padding: 6px 16px 14px;
        margin: 0 -16px;
        scroll-snap-type: x mandatory;
        scroll-padding: 16px;
    }
    .wfy-sched-pill {
        min-width: 76px;
        padding: 10px 12px;
        scroll-snap-align: start;
    }
    .wfy-sched-pill__num { font-size: 22px; }
    .wfy-sched-pill__weekday { font-size: 10px; letter-spacing: 0.14em; }
    .wfy-sched-pill__mo { font-size: 11px; }

    /* Day title */
    .wfy-sched-day__title { font-size: clamp(22px, 6vw, 30px); margin-bottom: 4px; }
    .wfy-sched-day__head { margin-bottom: 20px; }
    .wfy-sched-day__list { gap: 14px; }

    /* Card — app card feel */
    .wfy-sched-card__body { padding: 20px 20px 22px; gap: 8px; }
    .wfy-sched-card__title { font-size: 20px; }
    .wfy-sched-card__time { gap: 6px; }
    .wfy-sched-card__start { font-size: 22px; }
    .wfy-sched-card__end, .wfy-sched-card__dur { font-size: 13px; }
    .wfy-sched-card__meta { gap: 6px 8px; font-size: 12px; }
    .wfy-sched-card__chip { font-size: 10px; letter-spacing: 0.1em; padding: 3px 10px; }
    .wfy-sched-card__excerpt { font-size: 14px; }
    .wfy-sched-card__actions { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 4px; }
    .wfy-sched-card__actions .wfy-btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 12px; }
    .wfy-sched-card__more { text-align: center; padding: 8px 0; }

    /* Featured card — collapse to single column even with thumb */
    .wfy-sched-card.is-featured {
        grid-template-columns: 1fr;
    }
    .wfy-sched-card.is-featured .wfy-sched-card__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    /* Day pill count badge — keep visible */
    .wfy-sched-pill__count { top: -4px; right: -4px; width: 20px; height: 20px; font-size: 10px; }
}

/* Tiny phones */
@media (max-width: 379px) {
    .wfy-sched-pill { min-width: 68px; padding: 9px 10px; }
    .wfy-sched-pill__num { font-size: 19px; }
    .wfy-sched-card__body { padding: 18px 16px 20px; }
}
