/* Christmas Theme (remove by deleting the link/script in index.html) */

:root {
  --christmas-red: #c41e3a;
  --christmas-green: #0d7d4e;
  --christmas-gold: #ffb347;
  --christmas-snow: #ffffff;
}

/* Subtle page accent */
body.christmas-active {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(196, 30, 58, 0.04), transparent 60%),
              radial-gradient(1000px 500px at 110% 10%, rgba(13, 125, 78, 0.05), transparent 60%),
              linear-gradient(135deg, #fff 0%, #fff 100%);
}

/* Header accent border becomes candy-cane gradient */
.app-header { 
  border-top: 4px solid transparent; 
  background-image: linear-gradient(#fff,#fff),
                  linear-gradient(90deg, var(--christmas-red), var(--christmas-green), var(--christmas-red));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Banner */
.christmas-banner {
  position: relative;
  margin: 12px auto 0;
  width: min(960px, calc(100% - 24px));
  background: linear-gradient(90deg, rgba(196,30,58,.1), rgba(13,125,78,.1));
  border: 1px solid rgba(196,30,58,.15);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.christmas-banner .icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); font-size: 18px; }
.christmas-banner .text { font-weight: 800; color: #111; letter-spacing: .2px; }

/* Floating overlay */
.christmas-overlay {
  position: fixed;
  inset: 0; 
  pointer-events: none;
  z-index: 25;
}

.c-floating {
  position: absolute;
  opacity: .85;
  will-change: transform, opacity;
  animation: floatY 10s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.15));
}
.c-floating.slow { animation-duration: 14s; opacity: .75; }
.c-floating.fast { animation-duration: 7s; }

@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(0deg) }
  50% { transform: translateY(-20px) rotate(3deg) }
}

/* Snowflakes */
.c-snowflake {
  position: fixed;
  color: rgba(255,255,255,.9);
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255,255,255,.8);
  user-select: none;
  z-index: 30;
  pointer-events: none;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.8;
  }
}

/* Reindeer flying */
.c-reindeer { 
  animation: reindeerFly 15s linear infinite; 
  opacity: .8; 
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
@keyframes reindeerFly {
  0% { transform: translateX(-15vw) translateY(0) scale(.9); opacity:.0 }
  10% { opacity:.85 }
  50% { transform: translateX(115vw) translateY(-8vh) scale(1) }
  100% { transform: translateX(135vw) translateY(4vh) scale(1.05); opacity:.0 }
}

/* Confetti (gifts/ornaments) */
.c-confetti { 
  position: fixed; 
  top:-20px; 
  width: 12px; 
  height: 12px; 
  border-radius: 2px; 
  z-index: 60; 
  pointer-events:none; 
}
.c-confetti.gift1 { background: var(--christmas-red); }
.c-confetti.gift2 { background: var(--christmas-green); }
.c-confetti.gift3 { background: var(--christmas-gold); }
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.9; }
}

/* Section subtle glow when active */
.section-card.christmas-active-section { 
  box-shadow: 0 12px 40px rgba(196,30,58,.08), 0 0 0 1px rgba(13,125,78,.06); 
}

/* Item hover Christmas glow */
.item:hover { box-shadow: 0 10px 30px rgba(196,30,58,.15); }

/* Santa sleigh animation */
.c-santa {
  position: fixed;
  bottom: 15vh;
  left: -200px;
  width: 200px;
  height: auto;
  z-index: 55;
  pointer-events: none;
  animation: santaRide 30s linear infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

.c-santa img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes santaRide {
  0%   { transform: translateX(-200px) translateY(0) }
  20%  { transform: translateX(25vw) translateY(-8px) }
  40%  { transform: translateX(50vw) translateY(6px) }
  60%  { transform: translateX(75vw) translateY(-10px) }
  80%  { transform: translateX(100vw) translateY(4px) }
  100% { transform: translateX(120vw) translateY(0) }
}

/* Santa speech bubble */
.c-santa-bubble {
  position: fixed;
  bottom: calc(15vh + 100px);
  left: 40px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(196,30,58,.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #111;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  z-index: 56;
  transform-origin: left bottom;
  animation: bubbleIn .6s ease forwards, bubbleFloat 5s ease-in-out infinite;
}
.c-santa-bubble:after {
  content: '';
  position: absolute;
  bottom: -8px; left: 12px;
  width: 14px; height: 14px;
  background: rgba(255,255,255,.95);
  border-left: 1px solid rgba(196,30,58,.15);
  border-bottom: 1px solid rgba(196,30,58,.15);
  transform: rotate(45deg);
}
@keyframes bubbleIn { from { opacity: 0; transform: scale(.9) } to { opacity: 1; transform: scale(1) } }
@keyframes bubbleFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

/* Mobile-specific Santa peeking */
.c-santa.mobile {
  width: 160px;
  height: auto;
  bottom: 10vh;
  animation: none;
}

.c-santa.peek-left { left: -200px; right: auto; transform: none; animation: santaPeekLeft 3s ease-in-out 1; }
.c-santa.peek-right { right: -200px; left: auto; transform: scaleX(-1); animation: santaPeekRight 3s ease-in-out 1; }

@keyframes santaPeekLeft {
  0% { transform: translateX(0) }
  25% { transform: translateX(120px) }
  50% { transform: translateX(100px) }
  75% { transform: translateX(130px) }
  100% { transform: translateX(0) }
}
@keyframes santaPeekRight {
  0% { transform: scaleX(-1) translateX(0) }
  25% { transform: scaleX(-1) translateX(-120px) }
  50% { transform: scaleX(-1) translateX(-100px) }
  75% { transform: scaleX(-1) translateX(-130px) }
  100% { transform: scaleX(-1) translateX(0) }
}

/* Knock ripple (reused from Halloween for mobile) */
.c-knock-ring {
  position: fixed;
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.15);
  box-shadow: 0 0 0 2px rgba(196,30,58,.12), 0 0 0 6px rgba(13,125,78,.08);
  pointer-events: none;
  z-index: 60;
  animation: knockRing .7s ease-out 1 forwards;
}
@keyframes knockRing {
  0% { transform: scale(.6); opacity: .9 }
  70% { transform: scale(1.6); opacity: .35 }
  100% { transform: scale(2.2); opacity: 0 }
}

@media (max-width: 640px) {
  .christmas-banner { padding: 8px 10px; gap: 8px; }
  .christmas-banner .text { font-size: 13px; }
  .c-santa { bottom: 8vh; }
  .c-santa-bubble { font-size: 13px; padding: 8px 10px; }
}

