﻿/* animations.css - Global Animations & Stagger Helpers */

/* =======================================================================
   29. ANIMATIONS (Global)
   ======================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes press {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================================================
   30. STAGGER ANIMATION HELPERS
   ======================================================================= */
.stagger-in>* {
  animation: staggerFadeIn 0.5s var(--spring) backwards;
}

.stagger-in>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger-in>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-in>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger-in>*:nth-child(4) {
  animation-delay: 0.2s;
}

.stagger-in>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger-in>*:nth-child(6) {
  animation-delay: 0.3s;
}

.stagger-in>*:nth-child(n+7) {
  animation-delay: 0.35s;
}

