/* === SimpleSticky Animations === */

/* ── Keyframes ── */

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

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(-1deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(-2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

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

/* ── Dashboard Entrance ── */

.dashboard-header {
  animation: fadeIn 0.35s ease-out;
}

.checklist-summary {
  animation: fadeIn 0.35s ease-out 0.1s backwards;
}

/* ── Category Ribbon Stagger ── */

.category-ribbon {
  animation: slideUp 0.4s ease-out backwards;
}

.category-group:nth-child(1) .category-ribbon:nth-child(1) { animation-delay: 0.06s; }
.category-group:nth-child(1) .category-ribbon:nth-child(2) { animation-delay: 0.12s; }
.category-group:nth-child(1) .category-ribbon:nth-child(3) { animation-delay: 0.18s; }
.category-group:nth-child(2) .category-ribbon:nth-child(1) { animation-delay: 0.24s; }
.category-group:nth-child(2) .category-ribbon:nth-child(2) { animation-delay: 0.30s; }
.category-group:nth-child(3) .category-ribbon:nth-child(1) { animation-delay: 0.36s; }
.category-group:nth-child(3) .category-ribbon:nth-child(2) { animation-delay: 0.42s; }

/* ── Quick Memo Wiggle ── */

.quick-memo {
  animation: wiggle 0.6s ease-in-out 0.6s;
}

/* ── Board View Entrance ── */

.board-view {
  animation: fadeIn 0.3s ease-out;
}

.sticky-note {
  animation: scaleIn 0.3s ease-out backwards;
}

.notes-grid .sticky-note:nth-child(1) { animation-delay: 0.04s; }
.notes-grid .sticky-note:nth-child(2) { animation-delay: 0.08s; }
.notes-grid .sticky-note:nth-child(3) { animation-delay: 0.12s; }
.notes-grid .sticky-note:nth-child(4) { animation-delay: 0.16s; }
.notes-grid .sticky-note:nth-child(5) { animation-delay: 0.20s; }
.notes-grid .sticky-note:nth-child(6) { animation-delay: 0.24s; }
.notes-grid .sticky-note:nth-child(7) { animation-delay: 0.28s; }
.notes-grid .sticky-note:nth-child(8) { animation-delay: 0.32s; }

/* ── FAB Pulse ── */

.fab-add {
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── Modal ── */

.modal-overlay {
  animation: fadeIn 0.2s ease-out;
}

.modal {
  animation: scaleIn 0.25s ease-out;
}

/* ── Fade Out Utility ── */

.fade-out {
  animation: fadeOut 0.2s ease-out forwards !important;
}

/* ── Reduced Motion ── */

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