/* ==========================================================================
   NEUTRON AI — ANIMATIONS
   Keyframes + reusable animation classes layered on top of theme.css
   ========================================================================== */

@keyframes bgCanvasFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#bg-canvas {
  animation: bgCanvasFadeIn 1.4s ease forwards;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.03); }
  50% { box-shadow: 0 0 28px rgba(255, 215, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
}

.animate-glow-pulse {
  animation: glowPulse 3.4s ease-in-out infinite;
}

@keyframes borderSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animate-border-sweep {
  background-size: 200% 100%;
  animation: borderSweep 3s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.text-gradient-gold {
  background: var(--gradient-gold-premium);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s linear infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatY 5s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.12s; }
.stagger-3 { animation-delay: 0.19s; }
.stagger-4 { animation-delay: 0.26s; }
.stagger-5 { animation-delay: 0.33s; }
.stagger-6 { animation-delay: 0.4s; }

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.status-dot.live {
  animation: pulseDot 2s infinite;
}

@keyframes scanLine {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.scan-line {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient-gold-line);
  animation: scanLine 4s linear infinite;
  pointer-events: none;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.activity-item-enter {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-ticker {
  animation: ticker 20s linear infinite;
}
