/*
 * Christmas in The Land. Loaded only while THEME = "christmas" (wrangler.toml).
 * Delete this file and the two images under art/xmas/ when the season ends, or just
 * clear the variable: the store falls back to base.css untouched.
 *
 * Direction: a December night in LA. The navy stays (it is the colour of the package
 * art); the accent warms from chrome blue to the gold of string lights; candy red is
 * kept for the sale alone, pine for a few quiet surfaces. Snow is weather, not confetti.
 */
:root[data-theme='christmas'] {
  --bg: #060913;
  --bg-2: #0a0f1c;
  --surface: #0e1423;
  --surface-2: #141b2e;
  --line: rgb(190 200 235 / 0.13);
  --line-2: rgb(214 220 245 / 0.27);
  --ink: #f6f1e7;
  --accent: #f3bb62;
  --accent-2: #ffd591;
  --accent-ink: #201405;
  --accent-glow: rgb(243 170 70 / 0.42);
  --sale: #e8343f;
  --pine: #123a2c;
  --stage: radial-gradient(120% 90% at 50% 0%, #1a2440 0%, #0c1222 60%, #080c18 100%);
}

/* Sale ribbon: candy red with a fine diagonal, like wrapping paper seen close up. */
[data-theme='christmas'] .ribbon { color: #fff8ee; background: repeating-linear-gradient(135deg, #c8202c 0 14px, #b81b27 14px 28px); text-shadow: 0 1px 0 rgb(0 0 0 / 0.25); }
[data-theme='christmas'] .flag.sale { color: #fff8ee; }

/* String lights along the bottom of the header: a wire and four colours of bulb,
   two of which breathe out of phase. Pure CSS, no images. */
[data-theme='christmas'] .head { border-bottom-color: transparent; }
[data-theme='christmas'] .head::before,
[data-theme='christmas'] .head::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; }
[data-theme='christmas'] .head::before {
  background:
    radial-gradient(circle at 24px 7px, #ffd27a 0 3px, rgb(255 190 90 / 0.5) 4px, transparent 9px) 0 0 / 192px 18px repeat-x,
    radial-gradient(circle at 120px 7px, #9fd4ff 0 3px, rgb(120 190 255 / 0.5) 4px, transparent 9px) 0 0 / 192px 18px repeat-x,
    linear-gradient(rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.16)) 0 1px / 100% 1px no-repeat;
  animation: twinkle-a 3.6s ease-in-out infinite;
}
[data-theme='christmas'] .head::after {
  background:
    radial-gradient(circle at 72px 7px, #ff6a6a 0 3px, rgb(255 80 80 / 0.5) 4px, transparent 9px) 0 0 / 192px 18px repeat-x,
    radial-gradient(circle at 168px 7px, #7be3a4 0 3px, rgb(90 220 150 / 0.45) 4px, transparent 9px) 0 0 / 192px 18px repeat-x;
  animation: twinkle-b 3.6s ease-in-out infinite;
}
@keyframes twinkle-a { 50% { opacity: 0.45; } }
@keyframes twinkle-b { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Hero: the season's own key art, blurred to light and colour, with snow settling at
   the foot of the frame. */
[data-theme='christmas'] .hero-bg img { filter: blur(26px) saturate(1.5) brightness(0.82); }
[data-theme='christmas'] .hero-bg::after {
  background:
    radial-gradient(60% 30% at 50% 104%, rgb(226 238 255 / 0.2), transparent 70%),
    radial-gradient(90% 70% at 74% 42%, transparent 0%, rgb(6 9 19 / 0.5) 72%),
    linear-gradient(180deg, rgb(6 9 19 / 0.5) 0%, rgb(6 9 19 / 0.25) 45%, var(--bg) 97%);
}
[data-theme='christmas'] .hero h1 { background: linear-gradient(180deg, #ffffff 20%, #dfe8fb 62%, #b9c9ea 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 18px rgb(140 180 255 / 0.25)); }
[data-theme='christmas'] .hero-art::before { background: radial-gradient(closest-side, rgb(255 190 110 / 0.34), rgb(220 50 60 / 0.16) 55%, transparent 74%); }

/* The countdown reads like advent tiles: warm paper numerals on pine. */
[data-theme='christmas'] .clock { border-color: rgb(243 187 98 / 0.4); background: linear-gradient(135deg, rgb(18 58 44 / 0.72), rgb(8 12 22 / 0.7)); }
[data-theme='christmas'] .clock-label b { color: #ff7a80; }
[data-theme='christmas'] .clock-digits span { background: #f6f1e7; border-color: transparent; box-shadow: 0 6px 16px -8px #000, inset 0 -3px 0 rgb(0 0 0 / 0.1); }
[data-theme='christmas'] .clock-digits b { color: #b0171f; }
[data-theme='christmas'] .clock-digits i { color: #5d6a61; }

/* Cards catch the light: a frost sheen crosses the art on hover, the edge warms. */
[data-theme='christmas'] .card-media::after,
[data-theme='christmas'] .wide-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 0.2) 50%, transparent 62%); transform: translateX(-120%); pointer-events: none; }
[data-theme='christmas'] .wide-art { position: relative; }
@media (hover: hover) {
  [data-theme='christmas'] .card:hover, [data-theme='christmas'] .wide:hover, [data-theme='christmas'] .plan:hover { border-color: rgb(243 187 98 / 0.55); box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.9), 0 0 34px -14px rgb(243 170 70 / 0.5); }
  [data-theme='christmas'] .card:hover .card-media::after, [data-theme='christmas'] .wide:hover .wide-art::after { transform: translateX(120%); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
}

/* A dusting of snow on the top edge of the plan tickets and the step cards. */
[data-theme='christmas'] .plan::before { content: ''; position: absolute; inset: -1px -1px auto; height: 3px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.7) 18%, #fff 50%, rgb(255 255 255 / 0.7) 82%, transparent); opacity: 0.55; filter: blur(0.4px); }
[data-theme='christmas'] .lot { background: linear-gradient(180deg, transparent, rgb(18 58 44 / 0.22) 22%, rgb(18 58 44 / 0.22) 78%, transparent); }
[data-theme='christmas'] .step-n { border-color: rgb(243 187 98 / 0.5); }
[data-theme='christmas'] .foot { background: linear-gradient(180deg, rgb(226 238 255 / 0.05), transparent 90px), var(--bg-2); border-top-color: rgb(255 255 255 / 0.22); }

@media (prefers-reduced-motion: reduce) {
  [data-theme='christmas'] .head::before, [data-theme='christmas'] .head::after { animation: none; }
}
