/* =============================================
   CRAZY MONKEY SOCIAL CASINO — ANIMATIONS.CSS
   Natural Jungle Motion System
   ============================================= */

/* ─── KEYFRAMES ─── */

@keyframes rayDrift {
  0%, 100% { opacity: 0.3; transform: rotate(-15deg) scaleX(1); }
  50% { opacity: 0.8; transform: rotate(-10deg) scaleX(1.5); }
}

@keyframes layerDrift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(20px) translateY(-10px); }
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-5deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

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

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes reelSpin {
  0% { transform: translateY(0); opacity: 1; }
  25% { transform: translateY(-8px); opacity: 0.6; }
  50% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(8px); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes winPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes floatBanana {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(10deg); }
  66% { transform: translateY(-8px) rotate(-5deg); }
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

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

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(60px) rotate(360deg); opacity: 0; }
}

@keyframes particleFloat2 {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-100px) translateX(-80px) rotate(-270deg); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes vineSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes leafDrift {
  0% { transform: translateX(-10px) rotate(-5deg); }
  50% { transform: translateX(10px) rotate(5deg); }
  100% { transform: translateX(-10px) rotate(-5deg); }
}

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

/* ─── SCROLL-TRIGGERED FADE IN ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger via CSS custom property delay */
.fade-in-up[style*="--delay"],
.fade-in-right[style*="--delay"] {
  transition-delay: var(--delay, 0s);
}

/* ─── PARTICLE STYLES ─── */
.particle {
  position: absolute;
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
  animation: particleFloat linear infinite;
}

.particle:nth-child(even) {
  animation-name: particleFloat2;
}

/* ─── VINE DECORATIONS ─── */
.vine-decoration {
  animation: vineSway 4s ease-in-out infinite;
  transform-origin: top center;
}

/* ─── HOVER LIFT UTILITY ─── */
.hover-lift {
  transition: transform var(--trans-mid), box-shadow var(--trans-mid);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ─── SHIMMER EFFECT ─── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-banana-yellow) 0%,
    var(--color-jungle-bright) 30%,
    var(--color-banana-yellow) 60%,
    var(--color-banana-warm) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ─── PAGE TRANSITION ─── */
body {
  animation: fadeInUp 0.5s ease forwards;
}

/* ─── BUTTON GLOW PULSE ─── */
.btn-primary {
  animation: none;
}

.btn-primary:hover {
  animation: glowPulse 1s ease-in-out infinite;
}

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

  .fade-in-up,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }
}