/* FlowFund — animations.css
   All keyframes + animation utilities. Respect prefers-reduced-motion. */

@keyframes ff-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ff-card-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ff-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

@keyframes ff-pulse-gentle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes ff-fab-in {
  from { opacity: 0; transform: translateX(8px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ff-confetti-fall {
  0% { transform: translateY(-10px) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes ff-check-draw {
  to { stroke-dashoffset: 0; }
}

.ff-anim-fade { animation: ff-fade-in var(--transition-normal) ease-out; }
.ff-anim-card { animation: ff-card-enter 300ms ease-out backwards; }
.ff-anim-card:nth-child(1) { animation-delay: 0ms; }
.ff-anim-card:nth-child(2) { animation-delay: 50ms; }
.ff-anim-card:nth-child(3) { animation-delay: 100ms; }
.ff-anim-card:nth-child(4) { animation-delay: 150ms; }
.ff-anim-card:nth-child(5) { animation-delay: 200ms; }
.ff-anim-card:nth-child(6) { animation-delay: 250ms; }
.ff-anim-card:nth-child(7) { animation-delay: 300ms; }
.ff-anim-card:nth-child(8) { animation-delay: 350ms; }
.ff-anim-card:nth-child(9) { animation-delay: 400ms; }
.ff-anim-pulse { animation: ff-pulse-gentle 2.4s ease-in-out infinite; }

/* Confetti particles */
.ff-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 300;
}
.ff-confetti__bit {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: ff-confetti-fall 2s ease-in forwards;
}

/* Page transition wrapper */
.ff-page { animation: ff-fade-in 250ms ease-out; }

@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;
  }
  .ff-confetti { display: none; }
}
