/**
 * Christmas Theme Styles
 * Active: December 15 - January 6
 */

/* Snowflake Animation */
.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255,255,255,0.7);
  pointer-events: none;
  z-index: 9999;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateY(25vh) rotate(90deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(75vh) rotate(270deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes sway {
  0%, 100% {
    margin-left: 0;
  }
  25% {
    margin-left: 20px;
  }
  50% {
    margin-left: -20px;
  }
  75% {
    margin-left: 10px;
  }
}

/* Christmas decorations on card */
.card {
  position: relative;
  overflow: visible;
}

.card::before {
  content: "\1F384";
  position: absolute;
  top: -30px;
  left: -15px;
  font-size: 35px;
  animation: gentle-bounce 2s ease-in-out infinite;
}

.card::after {
  content: "\1F384";
  position: absolute;
  top: -30px;
  right: -15px;
  font-size: 35px;
  animation: gentle-bounce 2s ease-in-out infinite 0.5s;
}

@keyframes gentle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Christmas title effect */
.card h3 {
  background: linear-gradient(90deg, #c41e3a, #228b22, #c41e3a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: christmas-gradient 3s linear infinite;
}

@keyframes christmas-gradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Festive button */
.btn-light {
  position: relative;
  overflow: hidden;
}

.btn-light::after {
  content: "\2728";
  position: absolute;
  right: 10px;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Christmas lights on top */
.christmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: space-around;
  z-index: 9998;
  pointer-events: none;
}

.light {
  width: 15px;
  height: 20px;
  border-radius: 50% 50% 50% 50%;
  animation: glow 1s ease-in-out infinite alternate;
}

.light:nth-child(5n+1) { background: #ff0000; animation-delay: 0s; }
.light:nth-child(5n+2) { background: #00ff00; animation-delay: 0.2s; }
.light:nth-child(5n+3) { background: #0080ff; animation-delay: 0.4s; }
.light:nth-child(5n+4) { background: #ffff00; animation-delay: 0.6s; }
.light:nth-child(5n+5) { background: #ff00ff; animation-delay: 0.8s; }

@keyframes glow {
  0% {
    opacity: 0.4;
    box-shadow: 0 0 5px currentColor;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
  }
}

/* Santa decoration - positioned via JavaScript */
.christmas-santa {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 35px;
  z-index: 10;
  animation: santa-wave 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes santa-wave {
  0%, 100% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(-5deg);
  }
  75% {
    transform: translateX(-50%) rotate(5deg);
  }
}
