/* ============================================================
   MOON AI HUNTER — Luxury Winter theme
   Champagne gold · deep emerald · quiet snow · no header clash
   ============================================================ */

html.christmas-theme {
  --xmas-gold: #e8d5a3;
  --xmas-gold-deep: #c9a227;
  --green: #6ee7b7;
  --red: #f0a8b0;
  --amber: #e8d5a3;
  --cyan: #a7f3d0;
  --violet: #c4b5fd;
  --eyebrow: #e8d5a3;
  --accent-grad: linear-gradient(135deg, #1a4d3e 0%, #2d6a4f 42%, #c9a227 100%);
  --text-grad: linear-gradient(105deg, #fef9ef 0%, #e8d5a3 45%, #c4b5fd 100%);
  --logo-glow: rgba(201, 162, 39, 0.32);
  --grad: linear-gradient(135deg, #1a4d3e 0%, #2d6a4f 48%, #b8962e 100%);
}

html.christmas-theme[data-theme="dark"],
html.christmas-theme:not([data-theme]) {
  --bg: #04080a;
  --bg-grad1: #0c1a16;
  --bg-grad2: #04080a;
  --panel: #0a1411;
  --panel2: #0e1b16;
  --line: rgba(232, 213, 163, 0.11);
  --card-from: rgba(10, 22, 18, 0.94);
  --card-to: rgba(6, 14, 12, 0.97);
  --sidebar: rgba(5, 12, 10, 0.97);
  --metric: rgba(12, 28, 22, 0.85);
  --metric-line: rgba(232, 213, 163, 0.1);
  --nav-active-bg: rgba(201, 162, 39, 0.1);
  --nav-active-line: rgba(232, 213, 163, 0.28);
  --blur-spot: rgba(45, 106, 79, 0.14);
}

html.christmas-theme[data-theme="light"] {
  --bg-grad1: #f5f7f4;
  --bg-grad2: #fafaf8;
  --green: #1a4d3e;
  --amber: #a16207;
  --line: rgba(26, 77, 62, 0.12);
  --card-from: #ffffff;
  --card-to: #f4faf6;
  --nav-active-bg: rgba(26, 77, 62, 0.08);
  --nav-active-line: rgba(26, 77, 62, 0.22);
}

html.christmas-theme body {
  background-image:
    radial-gradient(ellipse 90% 48% at 50% -18%, rgba(201, 162, 39, 0.13), transparent 55%),
    radial-gradient(ellipse 40% 32% at 96% 8%, rgba(45, 106, 79, 0.11), transparent 50%),
    radial-gradient(ellipse 34% 28% at 4% 42%, rgba(26, 77, 62, 0.09), transparent 45%),
    linear-gradient(180deg, #04080a 0%, #060c0a 100%) !important;
}

html.christmas-theme h1 em,
html.christmas-theme .hero h1 em,
html.christmas-theme .hero-title em {
  background: linear-gradient(105deg, #f5e6c4, #e8d5a3 40%, #c4b5fd) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html.christmas-theme .brand-mark {
  filter: drop-shadow(0 0 11px rgba(201, 162, 39, 0.28));
}

html.christmas-theme .btn.primary {
  background: linear-gradient(135deg, #1a4d3e 0%, #2d6a4f 52%, #b8962e 100%);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html.christmas-theme .price-card.popular {
  border-color: rgba(232, 213, 163, 0.32);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.1), 0 16px 48px rgba(201, 162, 39, 0.08);
}

html.christmas-theme .pill,
html.christmas-theme .eyebrow {
  border-color: rgba(232, 213, 163, 0.22);
  color: #e8d5a3;
}

/* Banner: BOTTOM of screen — never covers logo/nav */
#moonChristmasBanner {
  position: fixed;
  z-index: 9990;
  top: auto;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(380px, calc(100vw - 32px));
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 163, 0.26);
  background: linear-gradient(135deg, rgba(8, 16, 14, 0.94), rgba(6, 12, 11, 0.97));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: #f3ebd8;
  font: 600 11px/1.35 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(201, 162, 39, 0.07);
}
#moonChristmasBanner .xmas-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px;
  border-radius: 50%;
  background: var(--xmas-gold-deep);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.55);
  vertical-align: middle;
}

#moonChristmasSnow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.moon-snowflake {
  position: absolute;
  top: -20px;
  color: rgba(245, 238, 220, 0.42);
  opacity: 0;
  will-change: transform, opacity;
  animation-name: moonSnowFall, moonSnowFade;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  text-shadow: 0 0 5px rgba(232, 213, 163, 0.15);
  user-select: none;
}
.moon-snowflake.is-soft {
  color: transparent;
  text-shadow: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 70%);
  width: 2.5px;
  height: 2.5px;
  font-size: 0 !important;
  line-height: 0;
}
@keyframes moonSnowFall {
  from { transform: translate3d(0, -3vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift, 24px), 105vh, 0) rotate(200deg); }
}
@keyframes moonSnowFade {
  0% { opacity: 0; }
  10% { opacity: 0.45; }
  80% { opacity: 0.28; }
  100% { opacity: 0; }
}

html.christmas-theme .wrap,
html.christmas-theme .nav,
html.christmas-theme main,
html.christmas-theme .hero {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  #moonChristmasBanner {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    font-size: 9.5px;
    padding: 7px 14px;
    letter-spacing: 0.05em;
    max-width: calc(100vw - 28px);
  }
  #moonChristmasBanner .xmas-dot {
    margin: 0 6px;
    width: 4px;
    height: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moon-snowflake { display: none !important; animation: none !important; }
}
