/* =========================================================
   EvoNet AI — Custom Stylesheet (Production)
   Dark Mode Cyberpunk x Enterprise
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #00e5ff33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00e5ff66; }

/* --- Neon Glow --- */
.glow-cyan { text-shadow: 0 0 8px #00e5ff, 0 0 20px #00e5ff44; }
.glow-purple { text-shadow: 0 0 8px #a855f7, 0 0 20px #a855f744; }

.glow-border-cyan {
  box-shadow: 0 0 10px #00e5ff33, inset 0 0 10px #00e5ff11;
  border: 1px solid #00e5ff44;
}

.glow-border-purple {
  box-shadow: 0 0 10px #a855f733, inset 0 0 10px #a855f711;
  border: 1px solid #a855f744;
}

/* --- Pulse --- */
@keyframes pulse-neon {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #00e5ff66; }
  50% { opacity: 0.6; box-shadow: 0 0 20px #00e5ffaa; }
}
.animate-pulse-neon { animation: pulse-neon 2s ease-in-out infinite; }

/* --- Blink Cursor --- */
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor-blink::after {
  content: '█';
  color: #00e5ff;
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
}

/* --- Particles --- */
@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.particle {
  position: fixed;
  width: 3px; height: 3px;
  background: #00e5ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float-particle linear infinite;
  opacity: 0;
}

/* --- Grid Background --- */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Hero Gradient --- */
.hero-gradient {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

/* --- Terminal --- */
.terminal-body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.terminal-line.visible { opacity: 1; transform: translateY(0); }
.terminal-line .prefix { color: #00e5ff; user-select: none; }
.terminal-line .text-success { color: #22c55e; }
.terminal-line .text-danger { color: #ef4444; }
.terminal-line .text-warning { color: #facc15; }
.terminal-line .text-info { color: #38bdf8; }
.terminal-line .text-muted { color: #6b7280; }

/* --- Status Dot --- */
@keyframes status-blink {
  0%, 100% { box-shadow: 0 0 4px #22c55e; }
  50% { box-shadow: 0 0 12px #22c55e, 0 0 24px #22c55e44; }
}
.status-dot-online {
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: status-blink 2s ease-in-out infinite;
  display: inline-block;
}
.status-dot-offline {
  width: 10px; height: 10px;
  background: #6b7280;
  border-radius: 50%;
  display: inline-block;
}

/* --- Button Glow --- */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-glow:hover::before { width: 300px; height: 300px; }

/* --- Scanline --- */
@keyframes scanline { 0% { top: -10%; } 100% { top: 110%; } }
.scanline-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(to bottom, transparent, #00e5ff11, transparent);
  animation: scanline 4s linear infinite;
  pointer-events: none;
  z-index: 10;
}

/* --- Fade In --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* --- Glass --- */
.navbar-glass {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}
.card-glass {
  background: rgba(15, 15, 25, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.card-glass:hover {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 229, 255, 0.08);
}

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff33, transparent);
}

/* --- SPA Toggle --- */
.hidden-section { display: none !important; }
.visible-section { display: block; }

/* --- Textarea Focus --- */
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3), 0 0 20px rgba(0, 229, 255, 0.1);
}

/* --- Toast Slide-in --- */
@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
#toast-container > div {
  animation: toast-in 0.3s ease-out forwards;
}

/* --- Loading Spinner --- */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* --- Node Ping --- */
@keyframes node-ping {
  0% { transform: scale(1); opacity: 1; }
  75% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.node-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: node-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

/* --- Stat Counter --- */
@keyframes count-up {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.stat-number { animation: count-up 0.6s ease-out forwards; }
