/* 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);
  }
}
