/* ════════════════════════════════════════════════════
   ANIMATIONS  —  css/animations.css
════════════════════════════════════════════════════ */

/* ── Fade + slide in ──────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Page-load stagger ────────────────── */
.animate-in {
  opacity: 0;
  animation: fadeSlideUp 0.4s cubic-bezier(.4,0,.2,1) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.10s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.20s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.30s; }

/* ── Section transitions ──────────────── */
.content-section {
  animation: fadeIn 0.3s ease forwards;
}

/* ── Skeleton loader ──────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-raised) 25%, var(--border) 50%, var(--surface-raised) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton--text { height: 14px; margin-bottom: 8px; }
.skeleton--heading { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton--box { height: 80px; }

/* ── Sidebar slide ────────────────────── */
.app-sidebar {
  transition: width var(--transition-med);
}

/* ── Hover lift ───────────────────────── */
.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Pulse (notification dot) ─────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.pulse { animation: pulse 2s ease-in-out infinite; }
