/* ==========================================================================
   CYBERSENTINEL AI — HOLOGRAPHIC SCI-FI HUD THEME
   Inspired by Futuristic Cyberpunk Android AI Holograms & JARVIS HUD Interfaces
   ========================================================================== */

:root {
  --neon-cyan: #00f0ff;
  --neon-blue: #0077fe;
  --neon-purple: #a855f7;
  --neon-emerald: #10b981;
  --neon-rose: #f43f5e;
  --neon-amber: #f59e0b;
  --hud-bg: rgba(6, 14, 28, 0.78);
  --hud-border: rgba(0, 240, 255, 0.35);
  --hud-glow: rgba(0, 240, 255, 0.2);
}

/* Base Cyberspace Atmosphere */
body {
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(0, 119, 254, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.015) 2px, rgba(0, 240, 255, 0.015) 4px);
  color: #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* Custom Hologram Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Sci-Fi Typography */
.font-orbitron {
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.06em;
}
.font-rajdhani {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Neon Text Glow */
.glow-text-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}
.glow-text-emerald {
  color: var(--neon-emerald);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}
.glow-text-rose {
  color: var(--neon-rose);
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
}

/* Hologram HUD Glass Panel */
.hud-panel {
  position: relative;
  background: var(--hud-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hud-border);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.08), inset 0 0 15px rgba(0, 240, 255, 0.04);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-panel:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.18), inset 0 0 20px rgba(0, 240, 255, 0.08);
}

/* Corner Bracket Accents (Sci-Fi Cutouts) */
.hud-corner-brackets {
  position: relative;
}
.hud-corner-brackets::before,
.hud-corner-brackets::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--neon-cyan);
  pointer-events: none;
}
.hud-corner-brackets::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}
.hud-corner-brackets::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

/* Hologram Avatar Projector Pod */
.avatar-pod {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-image-wrap {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), inset 0 0 30px rgba(0, 119, 254, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.5);
  animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {
  0%, 100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.3);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.45);
  }
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.08) brightness(1.02);
}

/* Vignette overlay inside avatar container */
.avatar-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 45%, rgba(6, 14, 28, 0.6) 80%, rgba(3, 7, 18, 0.95) 100%);
  pointer-events: none;
}

/* Holographic Laser Rings (Rotating Platform at Bottom) */
.hologram-ring-1 {
  position: absolute;
  bottom: -25px;
  width: 360px;
  height: 90px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: rotateX(75deg);
  animation: spinClockwise 18s linear infinite;
  pointer-events: none;
}

.hologram-ring-2 {
  position: absolute;
  bottom: -35px;
  width: 440px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(0, 119, 254, 0.4);
  box-shadow: 0 0 30px rgba(0, 119, 254, 0.25);
  transform: rotateX(75deg);
  animation: spinCounterClockwise 25s linear infinite;
  pointer-events: none;
}

.hologram-beam {
  position: absolute;
  bottom: -15px;
  width: 280px;
  height: 160px;
  background: linear-gradient(0deg, rgba(0, 240, 255, 0.25) 0%, transparent 100%);
  clip-path: polygon(25% 100%, 75% 100%, 100% 0%, 0% 0%);
  pointer-events: none;
  animation: pulseBeam 4s ease-in-out infinite alternate;
}

@keyframes spinClockwise {
  from { transform: rotateX(75deg) rotate(0deg); }
  to { transform: rotateX(75deg) rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotateX(75deg) rotate(360deg); }
  to { transform: rotateX(75deg) rotate(0deg); }
}

@keyframes pulseBeam {
  0% { opacity: 0.35; transform: scaleY(0.9); }
  100% { opacity: 0.7; transform: scaleY(1.05); }
}

/* Interactive Quick Mission Buttons */
.hud-btn-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(11, 25, 48, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hud-btn-action:hover, .hud-btn-action.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.1);
  transform: translateX(4px);
}

.hud-btn-action::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--neon-cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.hud-btn-action:hover::before, .hud-btn-action.active::before {
  opacity: 1;
}

/* Scanlines Effect for Panels */
.scanlines {
  position: relative;
}
.scanlines::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 240, 255, 0.03) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

/* Equalizer Bars Animation */
.eq-bar {
  width: 4px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 24px; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 18px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 30px; animation-delay: 0.5s; }
.eq-bar:nth-child(5) { height: 16px; animation-delay: 0.4s; }
.eq-bar:nth-child(6) { height: 26px; animation-delay: 0.15s; }
.eq-bar:nth-child(7) { height: 10px; animation-delay: 0.35s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.3); opacity: 1; box-shadow: 0 0 8px var(--neon-cyan); }
}

/* Tech Input Style */
.hud-input {
  background: rgba(3, 10, 22, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s ease;
}

.hud-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Quick prompt pills */
.hud-chip {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(11, 25, 48, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.hud-chip:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Markdown prose rendering */
.prose pre {
  background-color: #030814 !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 0.75rem !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  color: #38bdf8 !important;
  overflow-x: auto;
}

.prose code {
  color: var(--neon-cyan) !important;
  background-color: rgba(0, 240, 255, 0.08) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-family: 'JetBrains Mono', monospace !important;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.78rem;
}

.prose th, .prose td {
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 10px;
}

.prose th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  font-family: 'Orbitron', monospace;
}
