/* ===== Boże Narodzenie (dark: SeasonalTheme.DARK_SLUGS) ===== */

/* --- Night palette (shared dark-mode fixes: seasons.css, html[data-season-dark]) --- */
@media screen {
  html[data-season="christmas"] {
    --paper: #0b1512;
    --ink: #f3efe6;
    --ink-muted: #aebdb4;
    --line: #24362d;
    --card: #12201a;
    --muted: #1a2b23;
    --surface-overlay: rgba(11, 21, 18, 0.82);
    --season-footer-bg: #17291f;
  }
}

/* --- Page-wide moonlight, warm lights glow and snowdrift (page_decor.html; stars: seasons.css) --- */
html[data-season="christmas"] .season-page-glow {
  inset: 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(254, 249, 231, 0.08), transparent 28%),
    radial-gradient(ellipse at 0% 110%, rgba(220, 38, 38, 0.14), transparent 50%),
    radial-gradient(ellipse at 70% 120%, rgba(234, 179, 8, 0.12), transparent 55%);
}
html[data-season="christmas"] .season-page-ground {
  filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, 0.35));
}
html[data-season="christmas"] .season-page-particles .season-particle { opacity: 0.85; }

html[data-season="christmas"] {
  --primary: #f05252;
  --secondary: #16a34a;
  --accent: #fbbf24;

  --season-accent-strong: #f05252;
  --season-hero-bg:
    radial-gradient(circle at 88% 8%, rgba(254, 249, 231, 0.16), transparent 32%),
    radial-gradient(ellipse at 18% 115%, rgba(220, 38, 38, 0.35), transparent 55%),
    radial-gradient(ellipse at 72% 120%, rgba(234, 179, 8, 0.2), transparent 50%),
    linear-gradient(160deg, #0b1d2a 0%, #0e2a22 55%, #10331e 100%);
  --season-hero-shadow: 0 30px 60px -30px rgba(6, 30, 20, 0.7);
  --season-hero-title: #fff8ec;
  --season-hero-text: rgba(254, 243, 199, 0.85);
  --season-form-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55);
  --season-submit-bg: linear-gradient(135deg, #ef4444, #b91c1c);
  --season-submit-hover: linear-gradient(135deg, #dc2626, #991b1b);
  --season-focus-ring: rgba(240, 82, 82, 0.35);
  --season-pill-bg: rgba(255, 255, 255, 0.08);
  --season-pill-border: rgba(255, 255, 255, 0.18);
  --season-pill-fg: #fde68a;
  --season-pill-hover-bg: rgba(240, 82, 82, 0.2);
  --season-pill-hover-border: #f05252;
  --season-badge-bg: rgba(251, 191, 36, 0.14);
  --season-badge-border: rgba(251, 191, 36, 0.45);
  --season-badge-fg: #fcd34d;
  --season-cta-bg: #fbbf24;
  --season-cta-hover-bg: #fcd34d;
  --season-cta-fg: #1c1917;
  --season-chip-bg: #14251d;
  --season-chip-hover-bg: #1c3127;
  --season-chip-border: #f05252;
  --season-chip-fg: #fca5a5;
  --season-selection-bg: #f05252;
  --season-selection-fg: #ffffff;
  --season-scrollbar: rgba(240, 82, 82, 0.55);
  --season-scrollbar-hover: #f05252;
  --season-card-hover-border: rgba(251, 191, 36, 0.45);
  --season-card-hover-glow: rgba(251, 191, 36, 0.3);
  --map-pin: #16a34a;
  --map-pin-detail: #f05252;
  --season-section-bg:
    radial-gradient(ellipse at 50% 125%, rgba(234, 179, 8, 0.25), transparent 60%),
    radial-gradient(ellipse at 0% 0%, rgba(220, 38, 38, 0.18), transparent 45%),
    linear-gradient(180deg, #2a0b10 0%, #1d0d11 55%, #0f1c16 100%);
  --season-card-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.75);
}

html[data-season="christmas"] .season-section {
  --season-hero-title: #fff8ec;
  --season-hero-text: rgba(254, 215, 170, 0.8);
  --season-link: #fbbf24;
}
html[data-season="christmas"] .season-section-panel {
  border: 1px solid rgba(251, 191, 36, 0.22);
  padding-top: 96px;
}
html[data-season="christmas"] .season-section-title {
  text-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
}

html[data-season="christmas"] .season-section-sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 8% 70%, rgba(253, 230, 138, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 22% 38%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 41% 86%, rgba(253, 230, 138, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 57% 52%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 74% 30%, rgba(253, 230, 138, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 66%, rgba(255, 255, 255, 0.9), transparent);
  animation: season-xmas-twinkle 4s ease-in-out infinite alternate;
}

/* --- Home hero: night sky, moon, string lights, snowy pines --- */
html[data-season="christmas"] .season-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 46% 14%, #fff, transparent),
    radial-gradient(1px 1px at 58% 44%, #fff, transparent),
    radial-gradient(1px 1px at 71% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 84% 36%, #fff, transparent),
    radial-gradient(1px 1px at 93% 62%, #fff, transparent),
    radial-gradient(1px 1px at 36% 90%, #fff, transparent);
  animation: season-xmas-twinkle 5s ease-in-out infinite alternate;
}
@keyframes season-xmas-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.8; }
}

html[data-season="christmas"] .season-moon {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 150px;
  filter: drop-shadow(0 0 28px rgba(254, 249, 231, 0.5));
}

html[data-season="christmas"] .season-lights {
  position: absolute;
  top: 0;
  left: 0;
}
html[data-season="christmas"] .season-lights--a { animation: season-xmas-bulbs 1.8s ease-in-out infinite alternate; }
html[data-season="christmas"] .season-lights--b { animation: season-xmas-bulbs 1.8s ease-in-out -0.9s infinite alternate; }
@keyframes season-xmas-bulbs {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

html[data-season="christmas"] .season-snowbank {
  position: absolute;
  left: 0;
  bottom: 0;
}
html[data-season="christmas"] .season-trees {
  position: absolute;
  right: 48px;
  bottom: 4px;
  width: 160px;
}
html[data-season="christmas"] .season-tree-star {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.9));
  animation: season-xmas-star 2.4s ease-in-out infinite alternate;
}
@keyframes season-xmas-star {
  from { transform: scale(0.9); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 768px) {
  html[data-season="christmas"] .season-moon { width: 96px; top: -26px; right: -26px; }
  html[data-season="christmas"] .season-trees { width: 104px; right: 12px; }
  html[data-season="christmas"] .season-section-panel { padding-top: 84px; }
}

html[data-season="christmas"] .map-pin--season {
  background-image: url('../../../icons/seasons/christmas.svg');
}
html[data-season="christmas"] .empty-icon::before,
html[data-season="christmas"] .saved-empty-icon::before,
html[data-season="christmas"] #emptyState::before {
  background-image: url('../../../icons/seasons/christmas-gift.svg');
}
