/* ==========================================================================
   Holiday 2026: "Peppermint Night" (approved board HolidayPeppermint.dc.html)
   A seasonal layer on top of the evergreen styles. It is only linked while
   HOLIDAY is true in src/lib/site.mjs, and every rule is scoped to
   html.holiday, so turning the flag off removes all of it.
     html.holiday-seo  pages built from layouts/Layout.astro
     html.holiday-get  /get/ (styled by the marketing site's /styles.css)
   Decoration only: no content, no external requests, and every animation
   stops under prefers-reduced-motion (bottom of this file).
   ========================================================================== */

html.holiday {
  --pm-night: #0C222B;
  --pm-card: #143440;
  --pm-glow: #1E4A5C;
  --pm-red: #E8394B;
  --pm-red-deep: #D7263D;
  --pm-white: #FFF7F4;
  --pm-mint: #9FF0DB;
  --pm-gold: #FFD27A;
  --pm-kicker: #FF9AA6;
  --pm-ring: 0 0 0 2px #FFF7F4, 0 0 0 4px #D7263D, 0 0 26px rgba(232, 57, 75, 0.55);
}

/* ------------------------------ shared pieces ---------------------------- */

/* String lights: a scalloped wire with four bulb colours, drawn entirely
   with backgrounds so it costs one empty <div>. Hangs under the header. */
.holiday .pm-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 30px;
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='30'%3E%3Cpath d='M0 3Q28 21 56 3' fill='none' stroke='%23566A72' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 30px;
}
.holiday .pm-lights::before,
.holiday .pm-lights::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 112px 30px;
  animation: pm-glow 2.4s ease-in-out infinite;
}
.holiday .pm-lights::before {
  background-image:
    radial-gradient(3px 2.4px at 14px 11px, #6B7F87 0 90%, transparent 100%),
    radial-gradient(5.2px 7.4px at 14px 19px, #FF5C6E 0 88%, transparent 100%),
    radial-gradient(15px 15px at 14px 19px, rgba(255, 92, 110, 0.55), transparent),
    radial-gradient(3px 2.4px at 70px 11px, #6B7F87 0 90%, transparent 100%),
    radial-gradient(5.2px 7.4px at 70px 19px, #9FF0DB 0 88%, transparent 100%),
    radial-gradient(15px 15px at 70px 19px, rgba(159, 240, 219, 0.5), transparent);
}
.holiday .pm-lights::after {
  animation-delay: -1.2s;
  background-image:
    radial-gradient(3px 2.4px at 42px 11px, #6B7F87 0 90%, transparent 100%),
    radial-gradient(5.2px 7.4px at 42px 19px, #FFD27A 0 88%, transparent 100%),
    radial-gradient(15px 15px at 42px 19px, rgba(255, 210, 122, 0.55), transparent),
    radial-gradient(3px 2.4px at 98px 11px, #6B7F87 0 90%, transparent 100%),
    radial-gradient(5.2px 7.4px at 98px 19px, #FFF7F4 0 88%, transparent 100%),
    radial-gradient(15px 15px at 98px 19px, rgba(255, 247, 244, 0.5), transparent);
}
@keyframes pm-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Gentle snowfall: two tiled layers of flakes sliding down by exactly one
   tile, so the loop is seamless. Drawn on the hero's and CTA band's own
   ::before/::after (no markup), or in a .pm-snow box (/get/). Sits behind
   the content of its section. */
.holiday .pm-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.holiday .pm-snow::before,
.holiday .pm-snow::after,
.holiday-seo .page-hero::before,
.holiday-seo .page-hero::after,
.holiday-seo .cta::before,
.holiday-seo .cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -30px;
  right: -30px;
  top: calc(-1 * var(--tile));
  bottom: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-size: var(--tile) var(--tile);
  will-change: transform;
  animation: pm-fall var(--fall) linear infinite;
}
.holiday .pm-snow::before,
.holiday-seo .page-hero::before,
.holiday-seo .cta::before {
  --tile: 260px;
  --fall: 18s;
  opacity: 0.8;
  background-image:
    radial-gradient(circle at 20px 30px, #fff 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 92px 142px, rgba(255, 255, 255, 0.85) 0 2px, transparent 2.6px),
    radial-gradient(circle at 172px 72px, #fff 0 3px, transparent 3.6px),
    radial-gradient(circle at 232px 204px, rgba(255, 255, 255, 0.7) 0 1.7px, transparent 2.2px),
    radial-gradient(circle at 128px 238px, #fff 0 2.4px, transparent 3px),
    radial-gradient(circle at 58px 196px, rgba(255, 255, 255, 0.6) 0 1.6px, transparent 2.1px),
    radial-gradient(circle at 214px 12px, rgba(255, 255, 255, 0.75) 0 1.8px, transparent 2.3px);
}
.holiday .pm-snow::after,
.holiday-seo .page-hero::after,
.holiday-seo .cta::after {
  --tile: 190px;
  --fall: 26s;
  opacity: 0.55;
  animation-delay: -7s;
  background-image:
    radial-gradient(circle at 40px 100px, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 120px 20px, #fff 0 1.8px, transparent 2.3px),
    radial-gradient(circle at 160px 150px, #fff 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 80px 170px, #fff 0 1.6px, transparent 2.1px),
    radial-gradient(circle at 10px 50px, #fff 0 1.2px, transparent 1.7px);
}
@keyframes pm-fall {
  0% { transform: translate(0, 0); }
  50% { transform: translate(16px, calc(var(--tile) / 2)); }
  100% { transform: translate(0, var(--tile)); }
}

/* Peppermint stripe divider, with spinning peppermint candies. */
.holiday .pm-cane {
  position: relative;
  z-index: 2;
  height: 16px;
  background: repeating-linear-gradient(-45deg, #E8394B 0 12px, #FFF7F4 12px 24px);
  box-shadow: 0 0 26px rgba(232, 57, 75, 0.4);
  animation: pm-cane 3s linear infinite;
}
@keyframes pm-cane { to { background-position: 33.94px 0; } }
.holiday .pm-mint {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: repeating-conic-gradient(#E8394B 0 22.5deg, #FFF7F4 0 45deg);
  box-shadow: 0 0 0 3px #FFF7F4, 0 0 0 5px #0C222B, 0 0 22px rgba(255, 255, 255, 0.45);
  animation: pm-spin 8s linear infinite;
}
.holiday .pm-mint:first-child { left: max(16px, 12%); }
.holiday .pm-mint + .pm-mint { right: max(16px, 12%); animation-direction: reverse; }
.holiday .pm-mint.pm-mint-c { left: 50%; margin-left: -23px; }
@keyframes pm-spin { to { transform: rotate(360deg); } }

/* The Santa-hat mascot (/holiday-2026/mascot.svg animates itself). */
.holiday .pm-mascot { display: block; filter: drop-shadow(0 0 26px rgba(232, 57, 75, 0.45)); }
.holiday .pm-mascot img { display: block; width: 100%; height: auto; animation: pm-float 5s ease-in-out infinite; }
@keyframes pm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Red/white neon for accent words. */
.holiday .pm-neon {
  color: #FFF7F4;
  text-shadow: 0 0 6px #FF6B7A, 0 0 16px #E8394B, 0 0 34px #D7263D;
  animation: pm-flicker 5s linear -2.4s infinite;
}
@keyframes pm-flicker {
  0%, 17%, 21%, 24%, 52%, 56%, 100% { opacity: 1; }
  19%, 23%, 54% { opacity: 0.82; text-shadow: 0 0 6px #FF8A96; }
}

/* Peppermint stripe along the top of the footer. */
.holiday .site-footer { position: relative; }
.holiday .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, #E8394B 0 8px, #FFF7F4 8px 16px);
  opacity: 0.9;
}

/* =========================== SEO pages (Layout) ========================== */

/* Candy red replaces jade as the accent (buttons, focus, hovers, labels).
   Measured contrast: white on #D7263D 4.96:1, #B3192F on ivory 6.28:1. */
html.holiday-seo {
  --jade: #D7263D;
  --jade-deep: #B3192F;
  --jade-soft: #9FF0DB;
}
.holiday-seo .btn-jade { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 18px -8px rgba(215, 38, 61, 0.85); }

/* Dark header under the night sky. The string lights hang just below it in
   a zero-height row, so they drape over the hero and scroll away with it. */
.holiday-seo .pm-lights-row { position: relative; z-index: 40; height: 0; }
.holiday-seo .pm-lights-row .pm-lights { top: 0; }
.holiday-seo .site-header {
  background: rgba(12, 34, 43, 0.95);
  border-bottom: 1px solid rgba(159, 240, 219, 0.16);
}
.holiday-seo .header-nav a { color: #D5E1E5; }
.holiday-seo .header-nav a:hover,
.holiday-seo .header-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--pm-red); }
.holiday-seo .site-header .btn-jade { box-shadow: var(--pm-ring); }
.holiday-seo .site-header .btn-jade:hover { box-shadow: 0 0 0 2px #FFF7F4, 0 0 0 4px #D7263D, 0 0 40px rgba(232, 57, 75, 0.8); }
.holiday-seo :is(.site-header, .page-hero, .cta, .site-footer) :focus-visible { outline-color: var(--pm-gold); }

/* Hero: Peppermint Night sky, snow behind the copy, red neon glow. */
.holiday-seo .page-hero {
  background:
    radial-gradient(1000px 560px at 50% -12%, #1E4A5C 0%, rgba(30, 74, 92, 0) 70%),
    radial-gradient(720px 420px at 94% 112%, rgba(232, 57, 75, 0.2), transparent 60%),
    radial-gradient(620px 380px at 0% 100%, rgba(159, 240, 219, 0.08), transparent 60%),
    #0C222B;
}
.holiday-seo .page-hero > .wrap { position: relative; z-index: 1; }
.holiday-seo .page-hero .bulbs { display: none; }
.holiday-seo .page-hero .eyebrow { color: var(--pm-kicker); }
.holiday-seo .page-hero h1 { text-shadow: 0 0 26px rgba(232, 57, 75, 0.45); }
.holiday-seo .hero-photo { box-shadow: 0 0 0 4px #FFF7F4, 0 0 0 8px #D7263D, 0 0 48px -6px rgba(232, 57, 75, 0.6), var(--shadow-deep); }
.holiday-seo .page-hero a.chip:hover { border-color: var(--pm-gold); }

/* Mascot beside a hero that has no photo (the /disneyland-food/ pages). */
.holiday-seo .pm-hero-mascot { position: absolute; right: 24px; top: 50%; width: 210px; transform: translateY(-50%); }
.holiday-seo .hero-inner:has(> .pm-hero-mascot) { padding-right: 290px; }

/* Store buttons on night backgrounds become candy-red, ringed like the board. */
.holiday-seo .on-dark .store-btn { position: relative; background: var(--pm-red-deep); color: #fff; box-shadow: var(--pm-ring); }
.holiday-seo .on-dark .store-btn:hover { box-shadow: 0 0 0 2px #FFF7F4, 0 0 0 4px #D7263D, 0 0 42px rgba(232, 57, 75, 0.8); }
.holiday-seo .on-dark .store-btn small { opacity: 1; }
.holiday-seo .on-light .store-btn { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(215, 38, 61, 0.55); }

/* Closing CTA band. */
.holiday-seo .cta {
  background:
    radial-gradient(820px 400px at 50% 0%, rgba(30, 74, 92, 0.95), rgba(30, 74, 92, 0) 70%),
    radial-gradient(640px 300px at 50% 105%, rgba(232, 57, 75, 0.2), transparent 70%),
    #0C222B;
}
.holiday-seo .cta .bulbs { display: none; }
.holiday-seo .cta-inner { position: relative; z-index: 1; padding-block: 56px 72px; }
.holiday-seo .cta .pm-mascot { width: 180px; margin-bottom: 2px; }
.holiday-seo .cta h2 {
  font-family: "Bungee", "Impact", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 20ch;
}
.holiday-seo .cta .lede { color: #C9D8DD; max-width: 46ch; }
.holiday-seo .cta .store-buttons { margin-top: 14px; }
.holiday-seo .cta-note { color: #A9BEC5; }

/* Phone download bar: night bar, peppermint edge, red button. */
html.holiday-seo[data-platform] .store-bar {
  background: rgba(12, 34, 43, 0.97);
  border-top: 0;
  box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, 0.6);
}
html.holiday-seo[data-platform] .store-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 5px;
  background: repeating-linear-gradient(-45deg, #E8394B 0 6px, #FFF7F4 6px 12px);
}
.holiday-seo .store-bar-copy strong { color: #fff; }
.holiday-seo .store-bar-copy span { color: #C9D8DD; }
.holiday-seo .store-bar .btn { box-shadow: var(--pm-ring); }

@media (max-width: 940px) {
  .holiday-seo .pm-hero-mascot { display: none; }
  .holiday-seo .hero-inner:has(> .pm-hero-mascot) { padding-right: 24px; }
}
@media (max-width: 600px) {
  .holiday-seo .hero-inner:has(> .pm-hero-mascot) { padding-right: 20px; }
  .holiday-seo .cta .pm-mascot { width: 140px; }
  .holiday-seo .pm-mint { width: 36px; height: 36px; margin-top: -18px; }
  .holiday .pm-cane { height: 12px; }
}

/* ================================ /get/ ================================== */

.holiday-get .site-header { position: relative; }
.holiday-get .site-header .pm-lights { top: calc(100% - 6px); }
.holiday-get .burst { display: none; }
.holiday-get .sky-hero { overflow: hidden; }
.holiday-get .get-hero .hero-inner { z-index: 1; }
.holiday-get .neon {
  color: #FFF7F4;
  text-shadow: 0 0 6px #FF6B7A, 0 0 16px #E8394B, 0 0 34px #D7263D;
}
.holiday-get .mascot-wrap { margin-top: 18px; filter: drop-shadow(0 0 28px rgba(232, 57, 75, 0.45)); }
.holiday-get .get-hero .eyebrow { color: var(--pm-kicker); }
.holiday-get .pm-kicker {
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(232, 57, 75, 0.16);
  border: 1.5px solid rgba(255, 154, 166, 0.55);
  color: #FFE3E7;
  font-weight: 700;
  font-size: 0.98rem;
}
.holiday-get .btn-glow { background: var(--pm-red-deep); color: #fff; box-shadow: var(--pm-ring); }
.holiday-get .btn-glow:hover { color: #fff; box-shadow: 0 0 0 2px #FFF7F4, 0 0 0 4px #D7263D, 0 0 48px rgba(232, 57, 75, 0.85); }
.holiday-get .pulse::before { border-color: var(--pm-gold); inset: -9px; }
.holiday-get .proof { border-color: rgba(255, 154, 166, 0.45); box-shadow: 0 0 40px -12px rgba(232, 57, 75, 0.55); }
.holiday-get .proof-value { color: var(--pm-gold); }
.holiday-get .get-list li {
  border-left: 4px solid;
  border-image: repeating-linear-gradient(180deg, #E8394B 0 8px, #FFF7F4 8px 16px) 1;
}
.holiday-get .get-what .kicker { color: var(--pm-kicker); }

/* ============================ reduced motion ============================= */

@media (prefers-reduced-motion: reduce) {
  html.holiday *,
  html.holiday *::before,
  html.holiday *::after {
    animation: none !important;
    transition: none !important;
  }
}
