/* ============================================================
   THE WINNER'S CIRCLE — Animations & Keyframes
   Scroll-triggered, shimmer, stagger system
   ============================================================ */

/* ======================
   KEYFRAMES
   ====================== */
@keyframes wcFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes wcScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

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

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

@keyframes wcPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201,168,76,0.3);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(201,168,76,0.15);
  }
}

@keyframes wcBorderGlow {
  0%, 100% { border-color: rgba(201,168,76,0.2); }
  50% { border-color: rgba(201,168,76,0.5); }
}

@keyframes wcSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   SCROLL-TRIGGERED ANIMATIONS
   [data-wc-animate] system
   ====================== */

/* Base state: hidden and offset */
[data-wc-animate] {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-wc-animate="fade-up"] {
  transform: translateY(30px);
}

[data-wc-animate="fade-in"] {
  transform: none;
}

[data-wc-animate="scale-in"] {
  transform: scale(0.92);
}

[data-wc-animate="slide-left"] {
  transform: translateX(40px);
}

[data-wc-animate="slide-right"] {
  transform: translateX(-40px);
}

/* Visible state: animated in */
[data-wc-animate].wc-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Legacy scroll-animate support */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-animate.wc-visible,
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   STAGGER SYSTEM
   .wc-stagger container with child delays
   ====================== */
.wc-stagger > [data-wc-animate]:nth-child(1) { transition-delay: 0.05s; }
.wc-stagger > [data-wc-animate]:nth-child(2) { transition-delay: 0.1s; }
.wc-stagger > [data-wc-animate]:nth-child(3) { transition-delay: 0.15s; }
.wc-stagger > [data-wc-animate]:nth-child(4) { transition-delay: 0.2s; }
.wc-stagger > [data-wc-animate]:nth-child(5) { transition-delay: 0.25s; }
.wc-stagger > [data-wc-animate]:nth-child(6) { transition-delay: 0.3s; }
.wc-stagger > [data-wc-animate]:nth-child(7) { transition-delay: 0.35s; }
.wc-stagger > [data-wc-animate]:nth-child(8) { transition-delay: 0.4s; }
.wc-stagger > [data-wc-animate]:nth-child(9) { transition-delay: 0.45s; }
.wc-stagger > [data-wc-animate]:nth-child(10) { transition-delay: 0.5s; }
.wc-stagger > [data-wc-animate]:nth-child(11) { transition-delay: 0.55s; }
.wc-stagger > [data-wc-animate]:nth-child(12) { transition-delay: 0.6s; }

/* Legacy stagger support */
.scroll-animate:nth-child(1) { transition-delay: 0.05s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.15s; }
.scroll-animate:nth-child(4) { transition-delay: 0.2s; }
.scroll-animate:nth-child(5) { transition-delay: 0.25s; }
.scroll-animate:nth-child(6) { transition-delay: 0.3s; }

/* ======================
   GOLD SHIMMER FOR PREMIUM
   ====================== */
.wc-shimmer {
  background: linear-gradient(
    110deg,
    var(--wc-gold) 0%,
    #E8D48B 20%,
    var(--wc-gold) 40%,
    var(--wc-gold) 100%
  );
  background-size: 200% 100%;
  animation: wcGoldShimmer 3s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wc-shimmer-bg {
  background: linear-gradient(
    110deg,
    var(--wc-gold) 0%,
    #E8D48B 30%,
    var(--wc-gold) 60%,
    var(--wc-gold) 100%
  );
  background-size: 200% 100%;
  animation: wcGoldShimmer 3s ease-in-out infinite;
}

/* ======================
   HOVER ANIMATIONS
   ====================== */
.wc-hover-lift {
  transition: transform var(--wc-transition-base), box-shadow var(--wc-transition-base);
}

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

.wc-hover-glow {
  transition: box-shadow var(--wc-transition-base);
}

.wc-hover-glow:hover {
  box-shadow: var(--wc-shadow-gold);
}

.wc-hover-gold-border {
  transition: border-color var(--wc-transition-base);
}

.wc-hover-gold-border:hover {
  border-color: var(--wc-gold) !important;
}

/* ======================
   FLOATING / PULSE
   ====================== */
.wc-float {
  animation: wcFloatUp 4s ease-in-out infinite;
}

.wc-pulse-glow {
  animation: wcPulseGlow 2.5s ease-in-out infinite;
}

/* ======================
   PAGE ENTRANCE
   ====================== */
.wc-page-enter {
  animation: wcFadeIn 0.5s ease-out forwards;
}

/* ======================
   NAVBAR SCROLL ANIMATION
   ====================== */
.wc-nav-enter {
  animation: wcSlideIn 0.4s ease-out forwards;
}

/* ======================
   COUNTER ANIMATION
   ====================== */
.wc-counter {
  font-family: var(--wc-font-mono);
  font-variant-numeric: tabular-nums;
}

.wc-counter.wc-counted {
  animation: wcCountUp 0.4s ease-out forwards;
}

/* ======================
   PREFERS-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;
  }

  [data-wc-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .wc-shimmer,
  .wc-shimmer-bg {
    animation: none !important;
  }

  .wc-float,
  .wc-pulse-glow {
    animation: none !important;
  }
}
