/* Daily Bonus Animation Styles */

/* Base Confetti Container */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 0;
  border-radius: 2px;
  opacity: 0;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg);
    opacity: 0;
  }
}

/* Weekly Bonus Modal Animation Containers */
.weekly-bonus-content .confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.weekly-bonus-content .confetti-container.animate .confetti-piece {
  animation: confettiFall 4s linear infinite;
}

/* Themed Animation Containers */
.weekly-bonus-content .snow-container,
.weekly-bonus-content .fireworks-container,
.weekly-bonus-content .halloween-container,
.weekly-bonus-content .hearts-container,
.weekly-bonus-content .stars-container,
.weekly-bonus-content .shamrocks-container,
.weekly-bonus-content .maple-leaves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Snow Animation (Christmas) */
.weekly-bonus-content .snow-container .snowflake {
  position: absolute;
  top: 0;
  opacity: 0;
}

.weekly-bonus-content .snow-container.animate .snowflake {
  animation: snowFall 4s linear infinite;
}

@keyframes snowFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg);
    opacity: 0;
  }
}

/* Fireworks Animation (New Years) */
.weekly-bonus-content .fireworks-container .firework-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.weekly-bonus-content .fireworks-container.animate .firework-particle {
  animation: fireworkBurst 3s ease-out infinite;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

@keyframes fireworkBurst {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(
        calc(-50% + var(--translate-x, 100px)),
        calc(-50% + var(--translate-y, -100px))
      )
      scale(1) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translate(
        calc(-50% + var(--translate-x, 200px)),
        calc(-50% + var(--translate-y, -200px))
      )
      scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

/* Halloween Animation */
.weekly-bonus-content .halloween-container .halloween-piece,
.weekly-bonus-content .halloween-container .halloween-emoji {
  position: absolute;
  top: 0;
  opacity: 0;
}

.weekly-bonus-content .halloween-container.animate .halloween-piece,
.weekly-bonus-content .halloween-container.animate .halloween-emoji {
  animation: spookyFall 4s linear infinite;
}

@keyframes spookyFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg) scale(0.8);
    opacity: 0;
  }
}

/* Hearts Animation (Valentine's Day) */
.weekly-bonus-content .hearts-container .heart-piece,
.weekly-bonus-content .hearts-container .heart-emoji {
  position: absolute;
  top: 0;
  opacity: 0;
}

.weekly-bonus-content .hearts-container.animate .heart-piece,
.weekly-bonus-content .hearts-container.animate .heart-emoji {
  animation: heartsFloat 4s linear infinite;
}

@keyframes heartsFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* Stars Animation (4th of July) */
.weekly-bonus-content .stars-container .star-piece,
.weekly-bonus-content .stars-container .star-emoji {
  position: absolute;
  top: 0;
  opacity: 0;
}

.weekly-bonus-content .stars-container.animate .star-piece,
.weekly-bonus-content .stars-container.animate .star-emoji {
  animation: starsSparkle 4s linear infinite;
}

@keyframes starsSparkle {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg) scale(0.3);
    opacity: 0;
  }
}

/* Shamrocks Animation (St. Patrick's Day) */
.weekly-bonus-content .shamrocks-container .shamrock-piece,
.weekly-bonus-content .shamrocks-container .shamrock-emoji {
  position: absolute;
  top: 0;
  opacity: 0;
}

.weekly-bonus-content .shamrocks-container.animate .shamrock-piece,
.weekly-bonus-content .shamrocks-container.animate .shamrock-emoji {
  animation: shamrocksFloat 4s linear infinite;
}

@keyframes shamrocksFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* Maple Leaves Animation (Canada Day) */
.weekly-bonus-content .maple-leaves-container .maple-leaf-piece,
.weekly-bonus-content .maple-leaves-container .maple-leaf-emoji {
  position: absolute;
  top: 0;
  opacity: 0;
}

.weekly-bonus-content .maple-leaves-container.animate .maple-leaf-piece,
.weekly-bonus-content .maple-leaves-container.animate .maple-leaf-emoji {
  animation: mapleLeavesFloat 4s linear infinite;
}

@keyframes mapleLeavesFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}
