/* =============================================
   ANIMACIONES - BITVEGAS CASINO
   ============================================= */

/* =============================================
   KEYFRAMES BÁSICOS
   ============================================= */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

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

/* =============================================
   ANIMACIONES ESPECÍFICAS DEL CASINO
   ============================================= */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
  }
}

@keyframes glow-casino {
  0% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
}

@keyframes win-glow {
  0% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.8), 0 0 60px rgba(34, 197, 94, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
}

@keyframes loss-glow {
  0% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  }
  100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  }
}

/* =============================================
   CLASES DE UTILIDAD DE ANIMACIÓN
   ============================================= */
.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-spin-slow {
  animation: spin-slow 3s linear infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease;
}

.animate-fade-out {
  animation: fadeOut 0.3s ease;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease;
}

.animate-slide-out-right {
  animation: slideOutRight 0.3s ease;
}

.animate-slide-in-up {
  animation: slideInUp 0.3s ease;
}

.animate-slide-out-down {
  animation: slideOutDown 0.3s ease;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-gold {
  animation: pulse-gold 2s ease-in-out infinite;
}

.animate-glow-casino {
  animation: glow-casino 2s ease-in-out infinite;
}

.animate-win-glow {
  animation: win-glow 1s ease-in-out;
}

.animate-loss-glow {
  animation: loss-glow 1s ease-in-out;
}

/* =============================================
   TRANSICIONES
   ============================================= */
.transition-all {
  transition: all 0.2s ease;
}

.transition-transform {
  transition: transform 0.2s ease;
}

.transition-opacity {
  transition: opacity 0.2s ease;
}

.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* =============================================
   EFECTOS DE HOVER
   ============================================= */
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-scale-sm:hover {
  transform: scale(1.02);
}

.hover-lift:hover {
  transform: translateY(-2px);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* =============================================
   EFECTOS DE TRANSFORMACIÓN
   ============================================= */
.scale-95 {
  transform: scale(0.95);
}

.scale-105 {
  transform: scale(1.05);
}

/* =============================================
   EFECTOS DE VISIBILIDAD
   ============================================= */
.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

/* =============================================
   ANIMACIONES DE CARGA
   ============================================= */
.loading-dots::after {
  content: '';
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

/* =============================================
   MEDIA QUERIES PARA ANIMACIONES
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
