/* Animation hooks for GSAP + reduced motion */

/* Reduced motion: kill everything */
@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;
  }
}

/* Initial states for GSAP entry animations */
.gsap-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.gsap-scale-reveal {
  opacity: 0;
  transform: scale(0.95);
}

.gsap-fade {
  opacity: 0;
}

/* Pulse animation for lock indicator */
@keyframes lock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.lock-btn.locked {
  animation: lock-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lock-btn.locked {
    animation: none;
  }
}

/* Smooth value transitions when not using GSAP */
.value-transition {
  transition: color var(--duration-fast) var(--ease-out);
}

/* Viewfinder scanning line (subtle) */
@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 85, 46, 0.3),
    transparent
  );
  animation: scan-line 3s linear infinite;
  pointer-events: none;
  z-index: var(--z-hud);
}

@media (prefers-reduced-motion: reduce) {
  .scan-line {
    display: none;
  }
}
