/* ==========================================================================
   SALOSPORTS - Animation & Transition System
   ========================================================================== */

/* Base initial states for GSAP ScrollTrigger reveals */
[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal="fade-down"] {
  opacity: 0;
  transform: translateY(-40px);
}

[data-reveal="fade-left"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-reveal="fade-right"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.92);
}

[data-reveal="mask"] {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  opacity: 0;
}

/* Stagger item wrapper */
.stagger-items > * {
  opacity: 0;
  transform: translateY(30px);
}

/* Subtle Kinetic Pulse & Glow */
@keyframes redGlowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(227, 27, 35, 0.25);
  }
  50% {
    box-shadow: 0 0 45px rgba(227, 27, 35, 0.55);
  }
}

.pulse-glow-red {
  animation: redGlowPulse 3s infinite ease-in-out;
}

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

.float-element {
  animation: floatSubtle 4s ease-in-out infinite;
}

/* Continuous Subtle Pan / Ken Burns for Hero / Banners */
@keyframes kenBurnsSlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1); }
}

.ken-burns {
  animation: kenBurnsSlow 20s infinite alternate ease-in-out;
}

/* Shimmer Loading / Accent Animation */
@keyframes shimmerPass {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: shimmerPass 2.5s infinite;
}

/* Text Word / Character Stagger Reveal */
.split-line {
  overflow: hidden;
  display: block;
}

.split-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.is-revealed .split-word {
  transform: translateY(0);
  opacity: 1;
}

/* Reduced Motion Support for Accessibility */
@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;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .stagger-items > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
