/* ============================================
   WILD ROBIN CASINO — animations.css
   Scroll-triggered reveals, transitions, effects
   ============================================ */

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.9);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.65s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.75s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(9) { transition-delay: 0.85s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(10) { transition-delay: 0.95s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(11) { transition-delay: 1.05s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(12) { transition-delay: 1.15s; opacity: 1; transform: none; }

/* ============================================
   GOLD SHIMMER EFFECT
   ============================================ */

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

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.15) 50%,
    transparent 100%
  );
  animation: shimmer-move 3s ease-in-out infinite;
}

@keyframes shimmer-move {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ============================================
   GLOW PULSE
   ============================================ */

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

@keyframes glow-pulse-anim {
  0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,215,0,0.5), 0 0 80px rgba(255,215,0,0.2); }
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.counter-num {
  display: inline-block;
  transition: all 0.3s;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--wr-bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  height: 60px;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

.loading-bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255,215,0,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: var(--grad-gold);
  border-radius: 3px;
  animation: loading-fill 1.8s ease forwards;
}

@keyframes loading-fill {
  0%   { width: 0%; }
  30%  { width: 40%; }
  70%  { width: 75%; }
  100% { width: 100%; }
}

.loading-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--wr-text-muted);
  animation: loading-blink 1.5s ease-in-out infinite;
}

@keyframes loading-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--wr-bg-card);
  border: 1px solid var(--wr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  pointer-events: all;
  animation: toast-in 0.3s ease forwards;
}

.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}

.toast-icon { font-size: 1.3rem; }
.toast-msg { font-size: 0.875rem; color: var(--wr-text); }

/* ============================================
   TYPEWRITER EFFECT
   ============================================ */

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--wr-gold);
  white-space: nowrap;
  animation: typing 2.5s steps(30) 1s forwards, blink-cursor 0.75s step-end infinite;
  width: 0;
}

@keyframes typing {
  to { width: 100%; }
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--wr-gold); }
}

/* ============================================
   CARD SHINE ON HOVER
   ============================================ */

.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  z-index: 4;
}

.shine:hover::before {
  left: 125%;
}

/* ============================================
   RIPPLE EFFECT FOR BUTTONS
   ============================================ */

.ripple-wrap {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
