/* ==========================================================================
   SILICON ODYSSEY: VON NEUMANN QUEST - CUSTOM CYBER THEME
   ========================================================================== */

:root {
  --neon-cyan: #00f0ff;
  --neon-purple: #9d4edd;
  --neon-green: #00ff88;
  --neon-amber: #ffb703;
  --neon-red: #ff0055;
  --cyber-dark: #070b14;
  --cyber-card: #0f172a;
  --cyber-border: #1e293b;
}

body {
  background-color: var(--cyber-dark);
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Background Cyber Grid */
.cyber-grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
}

/* Neon Glow Utilities */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.glow-green {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), inset 0 0 10px rgba(0, 255, 136, 0.1);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3), inset 0 0 10px rgba(157, 78, 221, 0.1);
}

.glow-red {
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.35);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.text-glow-green {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
}

.text-glow-amber {
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.7);
}

/* Cyber Badges & Cards */
.cyber-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 1rem;
}

.cyber-button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cyber-button:active {
  transform: scale(0.97);
}

/* Scanning Line Animation */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.scanline-effect {
  position: relative;
  overflow: hidden;
}

.scanline-effect::after {
  content: " ";
  position: absolute;
  top: 0; left: 0; right: 0; height: 10px;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.15), transparent);
  animation: scanline 6s linear infinite;
  pointer-events: none;
}

/* Pulsing Badge */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Circuit Path SVG in Spectator */
.circuit-line {
  stroke: rgba(0, 240, 255, 0.2);
  stroke-width: 4;
  stroke-dasharray: 8 6;
  animation: dashMove 20s linear infinite;
}

.circuit-line-active {
  stroke: var(--neon-cyan);
  stroke-width: 6;
  filter: drop-shadow(0 0 8px #00f0ff);
  stroke-dasharray: 12 6;
  animation: dashMove 8s linear infinite;
}

@keyframes dashMove {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}
