/**
 * Wildheart Design System 2.0 — Motion language
 * Timing 150–220ms · smooth easing · reduced-motion safe
 */

.wh-lift {
  transition:
    transform var(--wh-transition),
    box-shadow var(--wh-transition);
}

.wh-lift:hover,
.wh-lift:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--wh-shadow-lift-soft);
}

.wh-lift:active {
  transform: translateY(0) scale(0.985);
}

@keyframes wh-check-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes wh-copper-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes wh-celebrate {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  40% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes wh-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wh-skeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.wh-anim-check {
  animation: wh-check-pop var(--wh-duration-slow) var(--wh-ease-out) both;
}

.wh-anim-shimmer {
  background: linear-gradient(
    110deg,
    var(--wh-color-copper-dark) 0%,
    var(--wh-color-copper-light) 40%,
    var(--wh-color-cream-white) 50%,
    var(--wh-color-copper-light) 60%,
    var(--wh-color-copper) 100%
  );
  background-size: 200% 100%;
  animation: wh-copper-shimmer 1.4s var(--wh-ease) infinite;
  color: var(--wh-color-ink-inverse);
}

.wh-anim-celebrate {
  animation: wh-celebrate 420ms var(--wh-ease-out) both;
}

.wh-anim-enter {
  animation: wh-fade-up var(--wh-duration) var(--wh-ease-out) both;
}

@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;
  }

  .wh-lift:hover,
  .wh-lift:focus-visible {
    transform: none;
  }
}
