/* KEVEO - Animations & Micro-interactions Stylesheet */

/* Fade In Transitions */
.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Pulsing heart for Co-Op Match Matches */
@keyframes pulse-heart {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.5));
  }
  50% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.5));
  }
}

/* Slide in up */
.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Glowing text effects */
.glow-text-primary {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.glow-text-secondary {
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Shaking animation on win */
.shake-element {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Glow pulse for active selection indicators */
.glow-pulse-active {
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    border-color: var(--border-active);
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.1);
  }
  50% {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  }
}

/* Bounce-in with elastic spring effect for winner card */
@keyframes winnerCardBounce {
  0% {
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    filter: blur(4px);
  }
  50% {
    transform: scale(1.03) translateY(-10px);
    filter: none;
  }
  75% {
    transform: scale(0.98) translateY(3px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.winner-card-bounce {
  animation: winnerCardBounce 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Pulse glow effects for the winner card based on theme */
.glow-pulse-food {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 107, 53, 0.25) !important;
  border-color: rgba(255, 107, 53, 0.4) !important;
}

.glow-pulse-movie {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.25) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
}

/* ================= PANTALLA DE ESTRENO (SPLASH) ================= */
.splash-screen {
  position: fixed;
  inset: 0;
  background-color: #060608;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  animation: splashZoom 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.splash-logo {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #f43f5e, #ec4899, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: splashFadeIn 0.8s ease forwards 0.2s;
}

.splash-dot {
  width: 14px;
  height: 14px;
  background-color: #ec4899;
  border-radius: 50%;
  margin-left: 10px;
  display: inline-block;
  box-shadow: 0 0 15px #ec4899;
  opacity: 0;
  transform: scale(0);
  animation: splashDotPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1s;
}

.splash-slogan {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: #a1a1aa; /* text-muted */
  text-transform: uppercase;
  opacity: 0;
  animation: splashSlideUp 0.8s ease forwards 1.2s;
}

@keyframes splashZoom {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.05); }
}

@keyframes splashFadeIn {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes splashDotPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 25px #ec4899; }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 15px #ec4899; }
}

@keyframes splashSlideUp {
  from { opacity: 0; transform: translateY(20px); letter-spacing: 12px; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 6px; }
}
