/* ==========================================================================
   ANIMATIONS.CSS — Tickets Oryon · Micro-interactions & Transitions
   ========================================================================== */

/* ── Basic Fades & Slides ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeIn var(--t-normal) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-up {
  opacity: 0;
  animation: slideUp var(--t-normal) forwards;
}

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

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

/* ── Card Pop In ── */
@keyframes cardPopIn {
  0%   { opacity: 0; transform: scale(0.96) translateY(14px); }
  70%  { transform: scale(1.01) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Tab View Page Transitions ── */
@keyframes pageEnter {
  0%   { opacity: 0; transform: translateY(10px) scale(0.995); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ── Glow & Pulses ── */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(34,211,238,0.25), inset 0 0 15px rgba(34,211,238,0.05);
    border-color: rgba(34,211,238,0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(34,211,238,0.45), inset 0 0 20px rgba(34,211,238,0.15);
    border-color: rgba(34,211,238,0.7);
  }
}

@keyframes pulseDotLive {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52,211,153,0.7); }
  70%  { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* ── Shimmer Reflection ── */
@keyframes shimmerWave {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-active {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmerWave 2.8s infinite;
}

/* ── Floating & Hover Physics ── */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-4px); }
}

.float-hover:hover {
  animation: floatGentle 2s ease-in-out infinite;
}

.scale-hover {
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.scale-hover:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ── Neon Border Ripple ── */
@keyframes borderGlowShift {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.neon-animated-border {
  animation: borderGlowShift 8s linear infinite;
}

/* ── Staggered Delays ── */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.30s; }

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