/* Custom animations for Tailwind migration - complex animations that can't be done with utilities */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coinFall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    top: 110%;
    transform: translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes ballFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-10px, -10px) rotate(180deg);
  }
  75% {
    transform: translate(10px, -15px) rotate(270deg);
  }
}

@keyframes confettiFall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110%;
    transform: translateX(15px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes bokehFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -15px) scale(1.1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-15px, 20px) scale(0.9);
    opacity: 0.25;
  }
  75% {
    transform: translate(15px, 10px) scale(1.05);
    opacity: 0.35;
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes underlineExpand {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes shimmerText {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes winGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6), inset 0 0 20px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.8), inset 0 0 30px rgba(220, 38, 38, 0.5);
  }
}

@keyframes winGlowInner {
  0%, 100% {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
  }
}

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

@keyframes amountPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes winPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@keyframes winShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes bokehFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(20px, -20px) scale(1.2);
    opacity: 0.6;
  }
}

/* Add more keyframes as needed during migration */

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes announcementPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Announcement shimmer effect */
.announcement-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.1), transparent);
  animation: shimmer 3s infinite;
}

/* Announcement marquee */
.announcement-marquee {
  animation: scroll 30s linear infinite;
}

.announcement-marquee-wrapper:hover .announcement-marquee {
  animation-play-state: paused;
}

/* Hero gradient shift */
.hero-gradient-shift {
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}
