/*
 * Seasonal theme S-02 (GitHub #176, epic #174). Linked only while a season is active (a later ticket adds the link).
 * Rules of this file (guard: tests/Unit/Theme/VsFaceliftSeasonCssTest.php, same spirit as VsFaceliftCssTest):
 *  - no colour literal and no !important; every colour comes from var(--vs-*) tokens;
 *  - every selector starts with .vsf-season (our own classes, nothing can leak to other pages);
 *  - no @keyframes: motion is done by vs-facelift-season.js (Web Animations, off for prefers-reduced-motion);
 *  - decorations never take clicks (pointer-events: none).
 * The season colours are NOT declared here. The pack sets these custom properties inline on the season wrapper:
 *   --vs-season-glow  --vs-season-mid  --vs-season-edge   background centre, middle, edge colours
 *   --vs-season-edge-bg                                   the full background value of the edge stripe (a gradient)
 *   --vs-season-sub                                       text colour of the sub title
 *   --vs-season-cap                                       colour of the ground and the string of lights in the pack art (snow, gold, water)
 *   --vs-season-k1 .. --vs-season-k4                      bokeh light colours
 *   --vs-season-p1 .. --vs-season-p4                      particle colours
 */

/* ---------- decorations never take clicks ---------- */
.vsf-season-fx,
.vsf-season-accessory,
.vsf-season-bg,
.vsf-season-lights,
.vsf-season-ground {
    position: absolute;
    pointer-events: none;
}

/* ---------- header: edge stripe and logo accessory ---------- */
.vsf-season-stripe {
    display: block;
    block-size: 0.375rem;
    background: var(--vs-season-edge-bg);
}

.vsf-season-logo {
    position: relative;
}

.vsf-season-accessory {
    left: -0.375rem;
    top: -0.125rem; /* the header has only a small padding above the logo (about 4px on a phone): the hat must not be cut by the top of the page */
    width: 1.625rem;
    height: 1.25rem;
    transform: rotate(-16deg);
}

/* ---------- particles (snow, confetti, drops): positions and motion come from the script ---------- */
.vsf-season-fx {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 5;
}

.vsf-season-p {
    position: absolute;
    opacity: 0.7;
}

.vsf-season-p--dot {
    border-radius: var(--vs-radius-full);
}

.vsf-season-p--confetti {
    border-radius: var(--vs-radius-xs);
}

.vsf-season-p--drop {
    border-radius: 50% 50% 50% 0;
}

.vsf-season-p--c1 {
    background: var(--vs-season-p1);
}

.vsf-season-p--c2 {
    background: var(--vs-season-p2);
}

.vsf-season-p--c3 {
    background: var(--vs-season-p3);
}

.vsf-season-p--c4 {
    background: var(--vs-season-p4);
}

/* ---------- visitor toggle ("Snow on / off") ---------- */
.vsf-season-toggle {
    position: absolute;
    left: var(--vs-spacing-md);
    bottom: var(--vs-spacing-md);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: var(--vs-spacing-xs);
    min-height: 2.75rem;
    padding: 0 var(--vs-spacing-md);
    border: 1px solid color-mix(in srgb, var(--vs-color-surface) 55%, transparent);
    border-radius: var(--vs-radius-full);
    background: color-mix(in srgb, var(--vs-season-edge) 90%, transparent);
    color: var(--vs-color-surface);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-title);
    cursor: pointer;
}

/* the script hides the toggle (hidden attribute) for reduced motion; display above would otherwise win over [hidden] */
.vsf-season-toggle[hidden] {
    display: none;
}

.vsf-season-toggle:hover {
    background: var(--vs-color-surface);
    color: var(--vs-season-edge);
}

.vsf-season-toggle:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: var(--vs-focus-ring-offset);
}

/* ---------- Hero (S-05): the layer lies over the Hero content, the toggle sits in the flow under its grid ---------- */
.vsf-season-hero {
    position: relative;
}

.vsf-season-hero-bar {
    display: flex;
}

.vsf-season-hero-bar .vsf-season-toggle {
    position: static;
    margin-bottom: var(--vs-spacing-md);
}

/* the script shows the toggle after the page has loaded; its room is kept from the first paint so the sections below never jump (found in Chromium: CLS 0.002 on desktop).
   Not kept for people who prefer reduced motion: the toggle stays hidden for them and the Hero is as tall as without a season. */
@media (prefers-reduced-motion: no-preference) {
    .vsf-season-hero-bar {
        min-height: calc(2.75rem + var(--vs-spacing-md));
    }
}

/* ---------- collection section ---------- */
.vsf-season-collection {
    position: relative;
    overflow: hidden;
    background: var(--vs-season-mid);
    color: var(--vs-color-surface);
    box-shadow: inset 0 1.75rem 2.25rem -1.125rem color-mix(in srgb, var(--vs-season-edge) 60%, transparent);
}

.vsf-season-bg {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, var(--vs-season-glow) 0%, var(--vs-season-mid) 60%, var(--vs-season-edge) 100%);
}

.vsf-season-bg::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, color-mix(in srgb, var(--vs-season-edge) 70%, transparent) 100%);
}

/* bokeh: soft round lights; the soft edge is a gradient, so there is no blur filter to slow phones down */
.vsf-season-bokeh {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.vsf-season-bokeh i {
    position: absolute;
    border-radius: var(--vs-radius-full);
}

.vsf-season-k1 {
    background: radial-gradient(circle, var(--vs-season-k1) 0%, transparent 70%);
}

.vsf-season-k2 {
    background: radial-gradient(circle, var(--vs-season-k2) 0%, transparent 70%);
}

.vsf-season-k3 {
    background: radial-gradient(circle, var(--vs-season-k3) 0%, transparent 70%);
}

.vsf-season-k4 {
    background: radial-gradient(circle, var(--vs-season-k4) 0%, transparent 70%);
}

.vsf-season-bokeh i:nth-child(1) { left: 2%; top: 4%; width: 18rem; height: 18rem; opacity: 0.6; }
.vsf-season-bokeh i:nth-child(2) { left: 12%; top: 48%; width: 13rem; height: 13rem; opacity: 0.55; }
.vsf-season-bokeh i:nth-child(3) { left: 26%; top: 0%; width: 10rem; height: 10rem; opacity: 0.4; }
.vsf-season-bokeh i:nth-child(4) { left: 34%; top: 54%; width: 19rem; height: 19rem; opacity: 0.4; }
.vsf-season-bokeh i:nth-child(5) { left: 48%; top: 8%; width: 15rem; height: 15rem; opacity: 0.45; }
.vsf-season-bokeh i:nth-child(6) { left: 60%; top: 62%; width: 11rem; height: 11rem; opacity: 0.4; }
.vsf-season-bokeh i:nth-child(7) { left: 68%; top: 0%; width: 20rem; height: 20rem; opacity: 0.5; }
.vsf-season-bokeh i:nth-child(8) { left: 82%; top: 40%; width: 14rem; height: 14rem; opacity: 0.4; }
.vsf-season-bokeh i:nth-child(9) { left: 90%; top: 4%; width: 11rem; height: 11rem; opacity: 0.5; }
.vsf-season-bokeh i:nth-child(10) { left: 44%; top: 38%; width: 8rem; height: 8rem; opacity: 0.35; }

.vsf-season-lights {
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1;
}

.vsf-season-ground {
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 6.875rem;
    z-index: 3;
}

.vsf-season-body {
    position: relative;
    z-index: 2;
    padding-top: 5.5rem;
    padding-bottom: 7.5rem;
}

.vsf-season-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--vs-spacing-md);
    margin-bottom: var(--vs-spacing-lg);
}

.vsf-season-title {
    margin: var(--vs-spacing-sm) 0 0;
    color: var(--vs-color-surface);
    font-weight: var(--vs-font-weight-title);
}

.vsf-season-sub {
    max-width: 32.5rem;
    margin: var(--vs-spacing-sm) 0 0;
    color: var(--vs-season-sub);
}

.vsf-season-pill {
    display: inline-block;
    padding: var(--vs-spacing-xs) var(--vs-spacing-sm);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-title);
    letter-spacing: 0.06em;
}

.vsf-season-viewall {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 var(--vs-spacing-lg);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-weight: var(--vs-font-weight-title);
}

.vsf-season-viewall:hover {
    background: color-mix(in srgb, var(--vs-color-brand-accent) 90%, var(--vs-color-text-on-primary));
}

.vsf-season-viewall:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: var(--vs-focus-ring-offset);
}

.vsf-season-rail {
    padding-top: var(--vs-spacing-sm);
    padding-bottom: var(--vs-spacing-xl);
}

/* The cards fly in from the right (data-vsf-enter, the facelift entrance template). While they fly the rail looks very wide, and scroll snapping would
   scroll the rail along with them (found in Chromium: scrollLeft ran from 1328 to 0 and the carousel measured the wrong width). No snapping in this rail:
   it still scrolls by touch, wheel, keyboard and the buttons. */
.vsf-season-rail .vsf-rail {
    scroll-snap-type: none;
}

/* the item cards inside the section are the normal item cards: no cap, no shadow, no hover lift (Master KMO, 2026-11-20) */

/* ---------- people who turn motion off ---------- */
@media (prefers-reduced-motion: reduce) {
    .vsf-season-fx {
        display: none;
    }
}
