/* ═══════════════════════════════════════════
   ANIMATIONS & MICRO-INTERACTIONS
   ═══════════════════════════════════════════ */

/* ── Pulse CTA Button ─────────────────────── */
.qt-animate-pulse {
  animation: qt-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes qt-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--qt-primary-glow);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(229, 57, 53, 0);
  }
}

/* ── Bounce badge ─────────────────────────── */
.qt-animate-bounce {
  animation: qt-bounce 1s ease infinite;
}

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

/* ── Fade Up on Scroll (Intersection Observer) */
.qt-animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

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

/* ── Shake effect ─────────────────────────── */
.qt-animate-shake {
  animation: qt-shake 0.5s ease-in-out;
}

@keyframes qt-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* ── Slide In Right ───────────────────────── */
.qt-animate-slide-in {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s ease;
}

.qt-animate-slide-in.qt-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Scale In ─────────────────────────────── */
.qt-animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.qt-animate-scale-in.qt-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Shimmer loading effect ───────────────── */
.qt-shimmer {
  background: linear-gradient(90deg,
    var(--qt-bg-muted) 25%,
    var(--qt-bg-soft) 50%,
    var(--qt-bg-muted) 75%
  );
  background-size: 200% 100%;
  animation: qt-shimmer 1.5s ease-in-out infinite;
}

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

/* ── Spinner ──────────────────────────────── */
.qt-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qt-spin 0.7s linear infinite;
}

@keyframes qt-spin {
  to { transform: rotate(360deg); }
}

/* ── Toast notification ───────────────────── */
.qt-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 26, 46, 0.95);
  color: white;
  padding: 12px 24px;
  border-radius: var(--qt-radius-full);
  font-size: var(--qt-fs-sm);
  z-index: var(--qt-z-toast);
  opacity: 0;
  transition: all var(--qt-transition-base);
  pointer-events: none;
  white-space: nowrap;
}

.qt-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .qt-animate-pulse,
  .qt-animate-bounce,
  .qt-animate-shake {
    animation: none;
  }

  .qt-animate-fade-up,
  .qt-animate-slide-in,
  .qt-animate-scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .qt-fomo__pulse-dot {
    animation: none;
  }
}
