/* ==========================================================================
   ElixerPro - Animations & Transitions
   Subtle, purposeful micro-interactions respecting prefers-reduced-motion
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Entrance utility classes */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Staggered entrance for results */
.name-card {
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Reduced Motion Override (Accessibility) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .name-card, .animate-fade-in, .animate-fade-in-up, .spin-slow {
    animation: none !important;
    transform: none !important;
  }
}
