/* animations.css — Keyframe animations and anime.js fallbacks */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#profile-popup {
  animation: popup-in 0.15s ease-out;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes glow-flash {
  0% { box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.3); }
  100% { box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
}

.toast {
  animation: toast-slide-in 0.3s ease-out;
}

.toast.dismissing {
  animation: toast-slide-out 0.3s ease-in forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .toast {
    animation: none;
    opacity: 1;
  }

  .toast.dismissing {
    animation: none;
    opacity: 0;
  }
}
