/* ============================================
   animations.css — SkipTV Keyframes & Motion
   ============================================ */

/* ==========================================
   KEYFRAMES
   ========================================== */

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

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

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

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

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

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

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

/* ==========================================
   SCROLL-TRIGGERED ANIMATION
   ========================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   STAGGER DELAYS
   ========================================== */

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================
   HERO ENTRANCE ANIMATIONS
   ========================================== */

.hero-animate {
  animation: fadeUp 0.8s ease forwards;
}

.hero-animate-2 {
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-animate-3 {
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-animate-4 {
  animation: fadeUp 0.8s ease 0.45s both;
}

/* ==========================================
   UTILITY ANIMATION CLASSES
   ========================================== */

.anim-float {
  animation: floatY 3s ease-in-out infinite;
}

.anim-pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

.anim-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.anim-scale-in {
  animation: scaleIn 0.4s ease forwards;
}

/* ==========================================
   SKELETON / LOADING SHIMMER
   ========================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================
   REDUCED MOTION SUPPORT
   ========================================== */

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

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-animate,
  .hero-animate-2,
  .hero-animate-3,
  .hero-animate-4 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .anim-float,
  .anim-pulse,
  .anim-spin {
    animation: none;
  }
}
