/* ============================================
   Fennec360-v2 Entrance Animations
   Staggered fadeInUp for dashboard components
   ============================================ */

/* ----------------------------------------
   1. KEYFRAMES
   ---------------------------------------- */

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

/* ----------------------------------------
   2. BASE ANIMATION CLASS
   ---------------------------------------- */

.animate-in {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

/* ----------------------------------------
   3. STAGGERED DELAYS - Dashboard Elements
   ---------------------------------------- */

/* Welcome banner - first element */
.dashboard-welcome-section.animate-in {
  animation-delay: 0ms;
}

/* Stat cards - 50ms stagger */
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(1) { animation-delay: 50ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(2) { animation-delay: 100ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(3) { animation-delay: 150ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(4) { animation-delay: 200ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(5) { animation-delay: 250ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(6) { animation-delay: 300ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(7) { animation-delay: 350ms; }
.dashboard-stats-grid .dashboard-stat-card.animate-in:nth-child(8) { animation-delay: 400ms; }

/* Tracker section */
.dashboard-tracker-section.animate-in {
  animation-delay: 250ms;
}

/* Grid row (activity + documents) */
.dashboard-grid-row.animate-in {
  animation-delay: 300ms;
}

/* Dashboard sections */
.dashboard-section.animate-in {
  animation-delay: 350ms;
}

/* Hub section */
.fennec360-hub-section.animate-in {
  animation-delay: 400ms;
}

/* ----------------------------------------
   4. REDUCED MOTION
   ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
