/* Animation Keyframes */

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

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

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Animation Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease;
}

.animate-slide-down {
  animation: slideInDown 0.6s ease;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Scroll Animation Base */
.animate-on-scroll {
  opacity: 0;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.is-visible {
  opacity: 1;
}

.animate-on-scroll--fade {
  animation-name: fadeIn;
}

.animate-on-scroll--scale {
  animation-name: scaleIn;
}

/* Stagger Animation Delays */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-light-secondary) 25%, var(--color-light) 50%, var(--color-light-secondary) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.skeleton--text {
  height: 1em;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton--card {
  min-height: 200px;
  border-radius: var(--radius-xl);
}
