/* ==============================================================================
   NEXUS-8 // SCI-FI 3D UI/UX STYLESHEET
   Extracted & Unified from 8_world_sci_fi_3d_ui_ux_showcase.html
   Ultra-Translucent Glassmorphism, Neon Telemetry & Futuristic Typography
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --accent: #00f3ff;
  --accent-secondary: #ff007f;
  --bg-dark: #030308;
  --panel-bg: rgba(7, 9, 18, 0.68);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-hover: rgba(255, 255, 255, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.nexus-theme {
  background-color: var(--bg-dark);
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.font-orbitron { font-family: 'Orbitron', sans-serif; }
.font-mono-tech { font-family: 'JetBrains Mono', monospace; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #04040a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent, #00f3ff), var(--accent-secondary, #ff007f));
  border-radius: 9999px;
}

/* Fixed 3D Canvas Viewport */
#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
}

canvas#worldCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Translucent Glassmorphic Sci-Fi Panels (Behind-content 3D visibility) */
.cyber-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-panel:hover {
  border-color: var(--panel-hover);
}

/* Interactive Controls */
input[type="range"].sci-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

input[type="range"].sci-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px var(--accent);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"].sci-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Scanlines & Vignette Overlays */
.scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 0, 0, 0.18) 50%,
    rgba(0, 0, 0, 0.18)
  );
  background-size: 100% 4px;
}

.vignette-radial {
  background: radial-gradient(circle at center, transparent 45%, rgba(2, 3, 8, 0.85) 100%);
}

/* Nav Pill Active State */
.nav-pill.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.35);
  color: #fff;
}

/* Article Reader Typography in Sci-Fi Translucent Style */
.article-prose {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-prose p {
  margin-bottom: 1.6rem;
}

.article-prose strong {
  color: #ffffff;
  font-weight: 600;
}

.article-prose h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-prose h2::before {
  content: '//';
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
}

.article-prose h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-prose blockquote {
  background: rgba(0, 243, 255, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.6rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: #e2e8f0;
}

.article-prose ul, .article-prose ol {
  margin: 1.4rem 0 1.8rem 1.8rem;
}

.article-prose li {
  margin-bottom: 0.75rem;
}

.article-prose li::marker {
  color: var(--accent);
}

.article-prose pre {
  background: rgba(2, 3, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #38bdf8;
}

.article-prose code:not(pre code) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: var(--accent);
}
