/**
 * New Year Theme Styles
 * Active: December 31 - January 2
 */

/* Firework particles */
.firework {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.firework-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: explode 1.5s ease-out forwards;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Confetti animation */
.confetti {
  position: fixed;
  top: -20px;
  font-size: 1.2em;
  pointer-events: none;
  z-index: 9998;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Sparkle stars */
.sparkle-star {
  position: fixed;
  font-size: 1.5em;
  pointer-events: none;
  z-index: 9997;
  animation: sparkle-twinkle 1s ease-in-out forwards;
}

@keyframes sparkle-twinkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Celebration card decorations */
.card {
  position: relative;
  overflow: visible;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

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

.card::after {
  content: "\1F38A";
  position: absolute;
  top: -35px;
  right: -15px;
  font-size: 35px;
  animation: party-bounce 1s ease-in-out infinite 0.3s;
}

@keyframes party-bounce {
  0%, 100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-10px) rotate(10deg);
  }
}

/* Golden title effect */
.card h3 {
  background: linear-gradient(90deg, #ffd700, #ffffff, #ffd700, #ffffff, #ffd700);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: golden-shimmer 2s linear infinite;
}

@keyframes golden-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

/* Celebration button */
.btn-light {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd700, #ffec8b) !important;
  border-color: #ffd700 !important;
  color: #333 !important;
}

.btn-light:hover {
  background: linear-gradient(135deg, #ffec8b, #ffd700) !important;
}

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

@keyframes firework-icon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

/* Champagne decoration - on card level */
.newyear-icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 35px;
  z-index: 10;
  pointer-events: none;
  animation: champagne-pop 2s ease-in-out infinite;
}

@keyframes champagne-pop {
  0%, 100% {
    transform: translateX(-50%) rotate(-5deg);
  }
  50% {
    transform: translateX(-50%) rotate(5deg);
  }
}

/* Year display banner */
.year-banner {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
  z-index: 9999;
  pointer-events: none;
  animation: year-glow 1.5s ease-in-out infinite alternate;
}

@keyframes year-glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.5);
  }
}
