/*
 * Arcade Comedy Theater — poster grid styling.
 *
 * Scoped, minimal subset pulled from arcade-child/style.css (design tokens,
 * .btn/.btn-ghost, .pill/.pill-time, .poster-grid/.poster* — sections 00,
 * 05, 06, 16 of that file). Deliberately NOT the whole stylesheet: that file
 * also carries global resets and nav/footer overrides (sections 02, 07, 29,
 * 30) meant for when arcade-child is the site's actual active theme, which
 * it currently isn't. Loading it wholesale would touch parts of the page
 * that have nothing to do with the shows grid. This file only defines the
 * exact classes arcade_gl_render_poster_card() and the [arcade_shows_grid]/
 * Grid View markup actually use, so it's safe to enqueue anywhere.
 *
 * Once arcade-child (or its design tokens) become the real site theme,
 * this file is redundant and can be dropped — the real stylesheet will
 * already define all of this.
 */

:root {
    --pink: #ca2779;
    --pink-hot: #ff3d8b;
    --purple: #6b4bc4;
    --purple-deep: #3f2c7e;
    --blue: #2773ca;
    --ink: #1d1626;
    --surface: #ffffff;
    --r-sm: 6px;
    --r-md: 10px;
    --shadow-md: 0 8px 32px rgba(29, 22, 38, 0.10);
    --shadow-lift: 0 20px 56px rgba(202, 39, 121, 0.22);
    --display: 'Oswald', sans-serif;
}

/* Buttons (arcade-child/style.css §05) */
.arcade-shows-grid .btn,
.arcade-grid-nav .btn {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s, border-color 0.18s;
}
.arcade-shows-grid .btn-ghost,
.arcade-grid-nav .btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 11px 22px;
    border: 1.5px solid var(--ink);
}
.arcade-shows-grid .btn-ghost:hover,
.arcade-grid-nav .btn-ghost:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.poster .btn {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
}
.poster .btn-pink {
    background: var(--pink);
    color: #fff;
    padding: 12px 24px;
}
.poster .btn-pink:hover {
    background: var(--pink-hot);
    color: #fff;
}
.poster .btn--full { display: block; width: 100%; }

/* Pills (arcade-child/style.css §06) */
.pill {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.2;
    white-space: nowrap;
}
.pill-time { background: rgba(202, 39, 121, 0.10); color: var(--pink); }
.pill-cost { background: rgba(255, 230, 0, 0.20); color: #7a6200; }

/* Poster cards (arcade-child/style.css §16) */
/* padding lives on .poster-grid itself, not a wrapper — the shortcode's
   .arcade-shows-grid wrapper and the native Grid View's TEC-generated
   container classes are different elements, but both contain .poster-grid */
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 24px 16px; }

/* .poster is a div now (not the link) — .poster__link wraps the
   clickable image+title+details area, and the "Get Tickets" button is a
   sibling so it isn't nested inside that link (invalid HTML otherwise). */
.poster {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s, box-shadow 0.22s;
}
.poster:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.poster__link { border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; }

.poster__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: var(--ink);
}

.poster__cta { padding: 0 20px 24px; }

/* Was a fixed 200px window with `cover`, which scaled an 800x800 poster to
   379px tall and showed only the top ~53% of it — the art these shows are sold
   on, cropped in half on the card that advertises them. A square box with
   `contain` shows the whole poster: the square ones (nearly all of them) fill
   it exactly, and taller art letterboxes against the card colour rather than
   losing its top or bottom. */
.poster__img {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: var(--purple-deep);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    overflow: hidden;
}
/* Blurred stand-in for whatever the poster doesn't cover. Inset past the edges
   so the blur's own soft border isn't visible inside the card. */
.poster__img-fill {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.62) saturate(1.15);
    z-index: 0;
}
/* The poster itself, whole. A square one covers the fill exactly. */
.poster__img-art {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}
.poster__img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 7px 7px;
}
.poster__img::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(29, 22, 38, 0.68), transparent 55%);
}
.poster__img-title {
    position: relative;
    z-index: 4;
    font-family: var(--display);
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    color: #fff;
    line-height: 0.96;
}
.poster__body {
    /* !important: Divi's own builder CSS wins this padding fight otherwise —
       confirmed via DevTools that a non-!important rule here gets crossed
       out by something else in the cascade (couldn't pin the exact rule in
       Divi's minified CSS, but this is a well-known Divi pattern). */
    padding: 28px 20px 32px !important;
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.poster__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.poster__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--purple));
}
.poster__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1.1;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .poster-grid { grid-template-columns: 1fr 1fr; }
}
/* Two up on phones. One full-width square poster per row would be ~350px tall
   — one show per screen and a very long scroll. Paired, each card is ~160px:
   smaller than the 200px strip this replaced, and the whole poster still fits
   with no crop and no side bars. Keep in step with arcade-child/style.css §32,
   which loads after this file and wins wherever both are present. */
@media (max-width: 767px) {
    .poster-grid { grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 12px; }
    .poster__body { padding: 16px 12px 18px !important; gap: 7px; }
    .poster__name { font-size: 14px; }
    .poster__cta  { padding: 0 12px 16px; }
    .poster .btn-pink { padding: 10px 12px; font-size: 11px; letter-spacing: 0.08em; }
    .poster .pill { font-size: 9px; padding: 3px 9px; }
    /* 22px of blur on a 161px card is proportionally twice what it is on a
       379px one — it turns to mush. Scale it with the card. */
    .poster__img-fill { filter: blur(11px) brightness(0.62) saturate(1.15); }
}

/* Supporting layout for our own wrapper classes (no arcade-child equivalent yet) */
.arcade-shows-grid__empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--ink);
    font-family: var(--display);
}
.arcade-shows-grid__more,
.arcade-grid-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
