/* ============================================
   PIN-UP CASINO AZ — animations.css
   Reveal, Stagger, Fade utilities
   ============================================ */

/* ============================================
   FADE-UP (hero elements)
   ============================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
}

.stagger-children.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger-children.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.stagger-children.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.stagger-children.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.stagger-children.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ============================================
   RETRO STAR SPARKLE
   ============================================ */
@keyframes sparkle {
  0%,100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50%     { opacity: 1; transform: scale(1) rotate(180deg); }
}

.star-sparkle {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

/* ============================================
   SHINE SWEEP (on CTA buttons)
   ============================================ */
@keyframes shine-sweep {
  from { transform: translateX(-100%) skewX(-20deg); }
  to   { transform: translateX(200%) skewX(-20deg); }
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%) skewX(-20deg);
  animation: shine-sweep 3s ease-in-out infinite;
}

/* ============================================
   SECTION BG ALTERNATING
   ============================================ */
.bg-alt {
  background: var(--pu-bg-mid);
}

/* ============================================
   HOVER UNDERLINE (footer links, inline)
   ============================================ */
.hover-underline {
  position: relative;
  display: inline-block;
}
.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--pu-gold);
  transition: width var(--trans-mid);
}
.hover-underline:hover::after { width: 100%; }

/* ============================================
   COUNTER NUMBER
   ============================================ */
.counter-num {
  display: inline;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
