/* ==========================================================================
   Beef Casino — Animations
   ========================================================================== */

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

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

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

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

@keyframes bcPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(199, 122, 58, 0.0),
                0 8px 20px -6px rgba(199, 122, 58, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(242, 207, 91, 0.5),
                0 12px 30px -6px rgba(255, 107, 26, 0.6);
  }
}

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

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

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

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

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

/* Staggered game card entrance */
.game-card {
  opacity: 0;
  animation: bcScaleIn 500ms var(--ease-out) both;
}
.game-card:nth-child(1) { animation-delay: 40ms; }
.game-card:nth-child(2) { animation-delay: 80ms; }
.game-card:nth-child(3) { animation-delay: 120ms; }
.game-card:nth-child(4) { animation-delay: 160ms; }
.game-card:nth-child(5) { animation-delay: 200ms; }
.game-card:nth-child(6) { animation-delay: 240ms; }
.game-card:nth-child(7) { animation-delay: 280ms; }
.game-card:nth-child(8) { animation-delay: 320ms; }

/* Header scrolled state */
.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(5, 1, 10, 0.96) 0%, rgba(10, 4, 6, 0.9) 100%);
  box-shadow: 0 6px 30px -8px rgba(0, 0, 0, 0.65);
}

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

/* Hero badge icon float */
.hero__badge img {
  animation: bcFloat 3s ease-in-out infinite;
}

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

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

/* Reveal-on-scroll class */
.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; }
}
