/**
 * Artspod v2 — homepage sections.
 */

/* ---------- Leaderboard (banner under the header) ---------- */
.aspv2 .asp-leaderboard {
    padding-block: var(--asp-sp-3);
    background: var(--asp-bg-soft);
}

/* Same treatment as the promo banner further down the page. */
.aspv2 .asp-leaderboard__inner {
    display: flex;
    justify-content: center;
    border-radius: var(--asp-radius-lg);
    overflow: hidden;
    background: var(--asp-ink);
}

.aspv2 .asp-leaderboard__inner img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Hero ---------- */
.aspv2 .asp-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, #0b1c30 0%, #16263d 100%);
    overflow: hidden;
}

.aspv2 .asp-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-block: clamp(var(--asp-sp-7), 10vw, 140px);
    max-width: 720px;
    margin-inline: auto;
}

.aspv2 .asp-hero__badge {
    background: var(--asp-primary);
    color: #fff;
    margin-bottom: var(--asp-sp-3);
}

.aspv2 .asp-hero h1 {
    color: #fff;
    font-size: var(--asp-fs-hero);
    margin-bottom: var(--asp-sp-3);
}

.aspv2 .asp-hero__sub {
    color: #cbd5e1;
    font-size: var(--asp-fs-lg);
    margin-bottom: var(--asp-sp-4);
}

/* Editor copy may carry inline links — keep them readable on the dark panel. */
.aspv2 .asp-hero__sub a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aspv2 .asp-hero__sub a:hover {
    color: var(--asp-primary-soft);
}

/* Card base (.asp-card and elements) lives in layout.css since Phase 4 —
   shared by all v2 page types. Only home-specific card variants below. */

/* ---------- News section (1 featured + 2 stacked) ---------- */
.aspv2 .asp-news-grid {
    display: grid;
    /* Ratio tuned so the featured card and the two stacked side cards land at
       matching heights; the flexible card bodies absorb the remainder. */
    grid-template-columns: 2.5fr 1fr;
    gap: var(--asp-sp-4);
}

/* Fill the grid cell so both columns bottom-align; the flexible body absorbs
   the few px of difference. */
.aspv2 .asp-news-feature .asp-card {
    height: 100%;
}

.aspv2 .asp-news-side {
    display: grid;
    gap: var(--asp-sp-4);
    grid-template-rows: 1fr 1fr;
}

.aspv2 .asp-news-feature .asp-card__media,
.aspv2 .asp-news-side .asp-card__media {
    aspect-ratio: 16 / 9;
}

.aspv2 .asp-news-feature .asp-card__title {
    font-size: var(--asp-fs-h2);
}

.aspv2 .asp-news-side .asp-card__body {
    justify-content: center;
    gap: var(--asp-sp-2);
}

.aspv2 .asp-news-side .asp-card__cta {
    margin-top: 0;
}

/* ---------- Musicals section ---------- */
.aspv2 .asp-musicals {
    background: var(--asp-bg-blue);
}

.aspv2 .asp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--asp-sp-4);
}

.aspv2 .asp-musicals .asp-card__cta {
    display: inline-block;
}

/* ---------- Promo banner ---------- */
.aspv2 .asp-promo {
    padding-block: var(--asp-sp-4);
}

.aspv2 .asp-promo__inner {
    border-radius: var(--asp-radius-lg);
    overflow: hidden;
    background: var(--asp-ink);
}

.aspv2 .asp-promo__inner img {
    width: 100%;
    height: auto;
    margin-inline: auto;
}

/* ---------- Upcoming shows (video row) ---------- */
.aspv2 .asp-video-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--asp-sp-3);
}

.aspv2 .asp-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--asp-sp-4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .aspv2 .asp-video-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Below ~1000px the 2.5fr/1fr split leaves the side cards too narrow —
       stack the whole news section instead. */
    .aspv2 .asp-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .aspv2 .asp-news-grid {
        grid-template-columns: 1fr;
    }

    .aspv2 .asp-grid-3 {
        grid-template-columns: 1fr;
    }

    .aspv2 .asp-video-row {
        grid-auto-flow: column;
        grid-auto-columns: 75%;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--asp-sp-2);
    }

    .aspv2 .asp-video-row .asp-ecard {
        scroll-snap-align: start;
    }
}

/* ---------- Cookie consent bar (overrides CookieInfo plugin) ---------- */

.aspv2 #jquery-cookie-law-script {
    background: var(--asp-ink);
    border-color: rgba(255, 255, 255, 0.12);
    border-top-width: 0;
    font-family: var(--asp-font);
    font-size: var(--asp-fs-sm);
    box-shadow: 0 -4px 24px rgba(11, 28, 48, 0.18);
}

.aspv2 #jquery-cookie-law-script #cookie-law-container-box {
    background: transparent;
}

.aspv2 #jquery-cookie-law-script #cookie-law-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--asp-sp-3);
    padding: var(--asp-sp-3) var(--asp-gutter);
    max-width: var(--asp-container);
    margin-inline: auto;
}

.aspv2 #jquery-cookie-law-script #cookie-law-message {
    float: none;
    flex: 1 1 280px;
    text-align: left;
    color: #cbd5e1;
    line-height: 1.5;
}

.aspv2 #jquery-cookie-law-script #cookie-law-buttons {
    display: flex;
    align-items: center;
    gap: var(--asp-sp-2);
    flex-shrink: 0;
}

.aspv2 #jquery-cookie-law-script a.cookie-law-button,
.aspv2 #jquery-cookie-law-script a#cookie-law-button-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--asp-radius-pill);
    font-weight: 600;
    font-size: var(--asp-fs-sm);
    text-decoration: none;
    text-shadow: none;
    transition: background var(--asp-transition), transform var(--asp-transition);
}

.aspv2 #jquery-cookie-law-script a.cookie-law-button {
    background: var(--asp-primary);
    color: #fff;
}

.aspv2 #jquery-cookie-law-script a.cookie-law-button:hover,
.aspv2 #jquery-cookie-law-script a.cookie-law-button:focus {
    background: var(--asp-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.aspv2 #jquery-cookie-law-script a#cookie-law-button-more {
    margin-left: 0;
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.aspv2 #jquery-cookie-law-script a#cookie-law-button-more:hover,
.aspv2 #jquery-cookie-law-script a#cookie-law-button-more:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .aspv2 #jquery-cookie-law-script #cookie-law-container {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--asp-sp-2);
        padding: var(--asp-sp-3) var(--asp-gutter);
    }

    .aspv2 #jquery-cookie-law-script #cookie-law-message {
        width: 100%;
    }
}
