/* ==========================================================================
   Vegas Hero Casino — Animations
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes vhFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes vhScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes vhPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(247, 201, 72, 0.0),
                0 8px 20px -6px rgba(247, 201, 72, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(247, 201, 72, 0.45),
                0 12px 30px -6px rgba(247, 201, 72, 0.55);
  }
}

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

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

@keyframes vhDrawerIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* ---------- Entrance animations ---------- */
.hero__badge {
  opacity: 0;
  animation: vhFadeInUp 700ms var(--ease-out) 100ms both;
}
.hero__title-top {
  opacity: 0;
  animation: vhFadeInUp 800ms var(--ease-out) 250ms both;
}
.hero__title-bottom {
  opacity: 0;
  animation: vhFadeInUp 800ms var(--ease-out) 400ms both;
}
.hero__desc {
  opacity: 0;
  animation: vhFadeInUp 700ms var(--ease-out) 550ms both;
}
.hero__actions {
  opacity: 0;
  animation: vhFadeInUp 700ms var(--ease-out) 700ms both;
}
.hero__stats {
  opacity: 0;
  animation: vhFadeInUp 700ms var(--ease-out) 850ms both;
}

/* Floating brand visual */
.brand-media img {
  animation: vhFloat 7s ease-in-out infinite;
}

/* Staggered game card entrance */
.game-card {
  opacity: 0;
  animation: vhScaleIn 500ms var(--ease-out) both;
}
.game-card:nth-child(1) { animation-delay: 40ms; }
.game-card:nth-child(2) { animation-delay: 110ms; }
.game-card:nth-child(3) { animation-delay: 180ms; }
.game-card:nth-child(4) { animation-delay: 250ms; }
.game-card:nth-child(5) { animation-delay: 320ms; }
.game-card:nth-child(6) { animation-delay: 390ms; }
.game-card:nth-child(7) { animation-delay: 460ms; }
.game-card:nth-child(8) { animation-delay: 530ms; }

/* Header scrolled state */
.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(5, 1, 15, 0.95) 0%, rgba(12, 3, 34, 0.88) 100%);
  box-shadow: 0 6px 30px -8px rgba(0, 0, 0, 0.6);
}

/* Nav mobile drawer animation */
.nav.is-open {
  animation: vhDrawerIn 320ms var(--ease-out) forwards;
}

/* Sparkle pulse on hero badge icon */
.hero__badge img {
  animation: vhFloat 3s ease-in-out infinite;
}

/* CTA pulse on primary hero button */
.hero__actions .btn--primary {
  animation: vhPulseGlow 3.2s ease-in-out 1.2s infinite;
}

/* Shine sweep across promo banner on load */
@keyframes vhBannerShineAuto {
  0%   { left: -60%; }
  40%  { left: 120%; }
  100% { left: 120%; }
}
.promo-banner__shine {
  animation: vhBannerShineAuto 5s ease-in-out 1.5s infinite;
}
.promo-banner:hover .promo-banner__shine {
  animation: none;
}

/* Section reveal when in viewport (used by JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .brand-media img,
  .hero__badge img,
  .hero__actions .btn--primary,
  .promo-banner__shine {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
