/* catch on - Animations CSS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(213, 82, 163, 0.3); }
  50% { box-shadow: 0 0 20px rgba(213, 82, 163, 0.6); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes streakFlame {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  25% { transform: scale(1.1) rotate(2deg); }
  50% { transform: scale(1.05) rotate(-1deg); }
  75% { transform: scale(1.15) rotate(1deg); }
}
@keyframes badgeEarned {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes progressFill {
  from { width: 0; }
}
@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-200px) rotate(720deg); opacity: 0; }
}
@keyframes toastSlide {
  0% { transform: translateX(120%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease-out both; }
.animate-fade-down { animation: fadeInDown 0.5s ease-out both; }
.animate-fade { animation: fadeIn 0.5s ease-out both; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out both; }
.animate-slide-right { animation: slideInRight 0.6s ease-out both; }
.animate-scale { animation: scaleIn 0.4s ease-out both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-flame { animation: streakFlame 1s ease-in-out infinite; }
.animate-badge { animation: badgeEarned 0.6s ease-out both; }
.animate-toast { animation: toastSlide 4s ease-in-out both; }
.animate-gradient { background-size: 200% 200%; animation: gradientShift 5s ease infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hover effects */
.hover-lift { transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s; }
.hover-lift:hover { transform: translateY(-7px); box-shadow: 0 16px 40px rgba(70,44,125,0.18); }
[data-theme="dark"] .hover-lift:hover { box-shadow: 0 16px 40px rgba(213,82,163,0.15); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Card staggered entry (for dynamically injected cards) */
@keyframes cardEntry {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-entry {
  animation: cardEntry 0.5s cubic-bezier(.22,1,.36,1) both;
}

