/* Events landing styles - Dr Azhar, 2026-12-02.
 *
 * Loaded ONLY by events.php and event-details.php via $extra_css, so nothing else on the
 * site changes appearance. Every class is prefixed .el- (events landing) for the same
 * reason: style.css is shared by 20+ pages and a bare .hero or .cta override would leak.
 *
 * Colours come from style.css :root (--primary-blue / --accent-orange / --dark-blue) so
 * the page still reads as DOKTOR AZ rather than a bolted-on template.
 */

/* ── Hero ──────────────────────────────────────────────────────────────────────── */
.el-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4.5rem 2rem 4rem;
    overflow: hidden;
    text-align: center;
}

/* Soft orange glow behind the headline - stops the flat navy block feeling like a banner */
.el-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(248,148,6,0.16) 0%, rgba(248,148,6,0) 62%);
    pointer-events: none;
}

.el-hero__inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The event's own poster, leading the hero. Capped well under the hero's 900px inner width
   so a wide banner does not push the headline below the fold on a laptop. */
.el-hero__poster {
    max-width: 720px;
    margin: 0 auto 2.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 44px rgba(0,0,0,0.38);
}

.el-hero__poster img {
    display: block;
    width: 100%;
    height: auto;   /* never crop - the poster carries the title and the dates as artwork */
}

.el-kicker {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #ffd79a;
}

.el-hero h1 {
    color: var(--white);
    font-size: 3.4rem;
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 1rem;
}

.el-hero__sub {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.92;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Date / time / venue strip under the headline */
.el-factstrip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.el-fact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.el-fact i { color: var(--accent-orange); }

/* ── The buy button, repeated down the page ────────────────────────────────────── */
.el-cta {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1.1rem 2.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 24px rgba(248,148,6,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.el-cta:hover {
    background: #d87f05;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(248,148,6,0.45);
}

/* Attention without an animation that never stops - 4 pulses then rest.
   A permanently pulsing button reads as an advert; a few pulses reads as urgency. */
.el-cta--pulse { animation: el-pulse 1.6s ease-out 4; }

@keyframes el-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(248,148,6,0.35); }
    50%      { box-shadow: 0 8px 24px rgba(248,148,6,0.35), 0 0 0 14px rgba(248,148,6,0); }
    1%       { box-shadow: 0 8px 24px rgba(248,148,6,0.35), 0 0 0 0 rgba(248,148,6,0.5); }
}

.el-cta--ghost {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: none;
}

.el-cta--ghost:hover { background: var(--accent-orange); color: var(--white); }

.el-cta__note {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.88rem;
    opacity: 0.8;
}

/* ── Countdown ─────────────────────────────────────────────────────────────────── */
.el-countdown {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 1.75rem;
    flex-wrap: wrap;
}

.el-countdown__unit {
    min-width: 82px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 0.75rem 0.5rem 0.6rem;
}

.el-countdown__num {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.el-countdown__label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 0.35rem;
}

/* Light variant for use on a white band rather than the navy hero */
.el-countdown--light .el-countdown__unit {
    background: var(--light-gray);
    border-color: var(--medium-gray);
}

.el-countdown--light .el-countdown__num { color: var(--primary-blue); }
.el-countdown--light .el-countdown__label { opacity: 1; color: var(--dark-gray); }

/* ── Seats left ────────────────────────────────────────────────────────────────── */
.el-seats {
    max-width: 480px;
    margin: 0 auto 1.75rem;
    text-align: left;
}

.el-seats__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.el-seats__bar {
    height: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    overflow: hidden;
}

.el-seats__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), #ffb44d);
    border-radius: 999px;
}

.el-seats--light .el-seats__bar { background: var(--medium-gray); }
.el-seats--light .el-seats__row { color: var(--dark-gray); }

.el-seats__hot { color: #ff6b6b; }
.el-seats--light .el-seats__hot { color: #d92d2d; }

/* Compact seats pill for the event cards */
.el-seatpill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff4e3;
    color: #a65c00;
    border: 1px solid #ffd9a6;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.el-seatpill--hot {
    background: #fdecec;
    color: #b32020;
    border-color: #f5bcbc;
}

/* ── Price block ───────────────────────────────────────────────────────────────── */
.el-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.el-price__now {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
}

.el-price__was {
    font-size: 1.1rem;
    text-decoration: line-through;
    opacity: 0.65;
}

.el-price__tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

/* The members-save line sits under the price a non-member will actually be charged */
.el-price__member {
    font-size: 0.92rem;
    font-weight: 600;
    margin: -0.75rem 0 1.5rem;
    opacity: 0.88;
}

.el-price__member i { color: var(--accent-orange); margin-right: 0.3rem; }

/* ── Urgency band - the mid-page repeat of the button ──────────────────────────── */
.el-band {
    background: var(--light-gray);
    padding: 3.5rem 2rem;
    text-align: center;
}

.el-band--dark {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.el-band--dark h2, .el-band--dark h3 { color: var(--white); }

.el-band h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.el-band__sub {
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.75;
    opacity: 0.9;
}

/* ── Event description band ────────────────────────────────────────────────────── */
.el-about {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dark-gray);
}

.el-about h1, .el-about h2, .el-about h3, .el-about h4 { margin-top: 2rem; }
.el-about p { margin-bottom: 1.1rem; }
.el-about ul, .el-about ol { margin: 0 0 1.25rem 1.5rem; }
.el-about li { margin-bottom: 0.5rem; }
.el-about img { max-width: 100%; height: auto; border-radius: 8px; }

.el-eyebrow {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.6rem;
}

/* ── Testimonials ──────────────────────────────────────────────────────────────── */
.el-quotes {
    /* MASONRY, not a grid. Dr Azhar, 2026-12-03: "there's a lot of empty spaces." A
       3-column grid gives every card in a row the same slot, so six quotes running from
       170 to 1168 characters left ragged gaps under the short ones (and, with
       align-items:start, a jagged bottom edge). Multi-column lets each card take only the
       height it needs and lets the browser even the columns out, which is what removes the
       white space. break-inside:avoid keeps a card whole instead of splitting it across
       two columns. */
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.el-quote {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    /* The margin, not a grid gap, is what separates stacked cards inside one column. */
    margin: 0 0 1.5rem;
    /* overflow:hidden gives the fade below something to sit against, and stops a long
       unbroken URL in a future testimonial pushing the card out of its column. */
    overflow: hidden;
}

.el-quote__stars { color: var(--accent-orange); font-size: 0.95rem; margin-bottom: 0.9rem; }

.el-quote__text {
    font-style: italic;
    line-height: 1.75;
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
}

.el-quote__who {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}

.el-quote__name { color: var(--primary-blue); font-size: 1rem; font-weight: 800; margin-bottom: 0.2rem; }
.el-quote__role { color: var(--dark-gray); font-size: 0.85rem; }
.el-quote__org  { color: var(--accent-orange); font-size: 0.8rem; font-weight: 600; }

/* ── The one very long quote ────────────────────────────────────────────────────
   Wesley Yee's is three times the length of any other and carries a numbered list, so
   at full height it owns a whole column on its own and makes the band look broken.
   Collapsed it reads as a normal card, and every word is still one click away - his
   text is NOT shortened or edited anywhere.
   CSS-only (a hidden checkbox) so it works with scripts blocked and in a screenshot. */
.el-quote__switch {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.el-quote--long .el-quote__text {
    position: relative;
    max-height: 17.5em;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.el-quote--long .el-quote__text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5em;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--white) 80%);
    pointer-events: none;
}

.el-quote__switch:checked ~ .el-quote__text { max-height: none; margin-bottom: 1.2rem; }
.el-quote__switch:checked ~ .el-quote__text::after { display: none; }

.el-quote__more {
    display: inline-block;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.1rem;
    user-select: none;
}

.el-quote__more:hover { color: var(--accent-orange); }
.el-quote__more--shut { display: none; }
.el-quote__switch:checked ~ .el-quote__more .el-quote__more--open { display: none; }
.el-quote__switch:checked ~ .el-quote__more .el-quote__more--shut { display: inline; }

/* ── Event cards (the "other dates" list) ──────────────────────────────────────── */
.el-cards { display: grid; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }

.el-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.el-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.11); }

.el-card__media { width: 300px; flex-shrink: 0; background: var(--light-gray); }

/* contain, NOT cover. Event posters on this site are portrait flyers carrying the title and
   the date as artwork - cover cropped the sides off and cut the words in half. Letterboxing
   on the grey keeps the whole poster readable. */
.el-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.el-card__body { padding: 1.6rem; flex: 1; }
.el-card__body h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.el-card__meta { color: var(--accent-orange); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.el-card__venue { color: var(--dark-gray); font-size: 0.9rem; margin-bottom: 0.8rem; }
.el-card__blurb { color: var(--dark-gray); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1rem; }
.el-card__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.el-card__price { font-weight: 800; color: var(--primary-blue); }
.el-card__price s { color: var(--dark-gray); font-weight: 400; opacity: 0.7; margin-right: 0.4rem; }

.el-card .el-cta { font-size: 0.95rem; padding: 0.75rem 1.6rem; box-shadow: none; }

/* ── Sticky buy bar - the button that follows you down the page ────────────────── */
.el-stickybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(0,31,63,0.97);
    color: var(--white);
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
    transform: translateY(110%);
    transition: transform 0.28s ease;
}

/* Shown by JS only once the hero button has scrolled away, so it never covers the
   hero CTA it is meant to replace. */
.el-stickybar.is-visible { transform: translateY(0); }

.el-stickybar__what { font-weight: 700; font-size: 0.95rem; }
.el-stickybar__when { font-size: 0.82rem; opacity: 0.8; }
.el-stickybar .el-cta { padding: 0.7rem 1.75rem; font-size: 0.95rem; box-shadow: none; }

/* ── Responsive ────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .el-quotes { column-count: 2; }
}

@media (max-width: 820px) {
    .el-hero { padding: 3rem 1.25rem 2.75rem; }
    .el-hero h1 { font-size: 2.1rem; }
    .el-hero__sub { font-size: 1.05rem; }
    .el-countdown__unit { min-width: 68px; padding: 0.6rem 0.4rem 0.5rem; }
    .el-countdown__num { font-size: 1.6rem; }
    .el-cta { display: block; width: 100%; font-size: 1.02rem; padding: 1rem 1.25rem; }
    .el-band { padding: 2.75rem 1.25rem; }
    .el-band h2 { font-size: 1.5rem; }
    .el-quotes { column-count: 1; }
    .el-card { flex-direction: column; }
    .el-card__media { width: 100%; height: 190px; }
    .el-price__now { font-size: 1.8rem; }

    /* On a phone the bar is just the button plus the price - the event name wraps badly */
    .el-stickybar { gap: 0.75rem; padding: 0.7rem 0.9rem; }
    .el-stickybar__when { display: none; }
    .el-stickybar .el-cta { width: auto; }

    /* Keep the footer clear of the fixed bar */
    body.el-has-stickybar { padding-bottom: 80px; }
}

/* Respect a visitor who has asked for less motion */
@media (prefers-reduced-motion: reduce) {
    .el-cta, .el-card, .el-stickybar { transition: none; }
    .el-cta--pulse { animation: none; }
}
