/* ============================================
   Radio Swartberg — Animations
   ============================================ */

@media (prefers-reduced-motion: no-preference) {

  /* --- Hero gradient drift --- */
  @keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -3%) scale(1.05); }
    66% { transform: translate(-3%, 5%) scale(0.97); }
  }

  @keyframes drift-alt {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-4%, 4%) scale(0.98); }
    66% { transform: translate(4%, -2%) scale(1.04); }
  }

  .hero__drift-1 {
    animation: drift 20s ease-in-out infinite;
  }

  .hero__drift-2 {
    animation: drift-alt 25s ease-in-out infinite;
  }

  /* --- Pulse rings --- */
  @keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
  }

  .play-btn__ring:nth-child(1) {
    animation: pulse-ring 2.5s ease-out infinite;
  }

  .play-btn__ring:nth-child(2) {
    animation: pulse-ring 2.5s ease-out infinite 0.5s;
  }

  .play-btn__ring:nth-child(3) {
    animation: pulse-ring 2.5s ease-out infinite 1s;
  }

  .play-btn.playing .play-btn__ring:nth-child(1) {
    animation-duration: 1.5s;
  }

  .play-btn.playing .play-btn__ring:nth-child(2) {
    animation-duration: 1.5s;
  }

  .play-btn.playing .play-btn__ring:nth-child(3) {
    animation-duration: 1.5s;
  }

  /* --- Play button glow --- */
  @keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.3); }
    50% { box-shadow: 0 0 50px rgba(0, 229, 255, 0.5), 0 0 80px rgba(0, 229, 255, 0.2); }
  }

  .play-btn.playing {
    animation: glow-pulse 2s ease-in-out infinite;
  }

  /* --- Live badge blink --- */
  @keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .live-badge__dot {
    animation: live-blink 1.5s ease-in-out infinite;
  }

  /* --- Fade slide up (entrance) --- */
  @keyframes fade-slide-up {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero__content .live-badge {
    animation: fade-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  }

  .hero__content .hero__title {
    animation: fade-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  }

  .hero__content .play-btn-wrap {
    animation: fade-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
  }

  .hero__content .listener-count {
    animation: fade-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
  }

  /* --- Scroll-reveal with stagger --- */
  .reveal.revealed {
    animation: fade-slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .reveal[data-delay="1"] { animation-delay: 0.1s; }
  .reveal[data-delay="2"] { animation-delay: 0.2s; }
  .reveal[data-delay="3"] { animation-delay: 0.3s; }
  .reveal[data-delay="4"] { animation-delay: 0.4s; }
  .reveal[data-delay="5"] { animation-delay: 0.5s; }

  /* --- Shimmer (NOW row) --- */
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }

  .schedule-row.now::after {
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
  }

  /* --- Float (featured card) --- */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .pricing-card.featured {
    animation: float 4s ease-in-out infinite;
  }

  .pricing-card.featured:hover {
    animation: none;
    transform: translateY(-4px);
  }

  /* --- Listener count tick --- */
  @keyframes count-tick {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }

  .listener-count__number.tick {
    animation: count-tick 0.15s ease-out;
  }

  /* --- Scroll indicator bounce --- */
  @keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  .scroll-indicator__chevron {
    animation: bounce-arrow 2s ease-in-out infinite;
  }

  /* --- Star flicker --- */
  @keyframes star-flicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.1; }
  }

  .star {
    animation: star-flicker var(--star-dur, 3.5s) ease-in-out var(--star-delay, 0s) infinite;
  }
}

/* --- Reduced motion: no animations, immediate visibility --- */
@media (prefers-reduced-motion: reduce) {
  .hero__content .live-badge,
  .hero__content .hero__title,
  .hero__content .play-btn-wrap,
  .hero__content .listener-count {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__drift-1,
  .hero__drift-2 {
    animation: none;
  }

  .hero__mountain {
    transform: none !important;
  }
}
