/* --- THE BUREAU: GLOBAL LOGIC LAYER --- */

:root {
  /* Brand Palette */
  --neon-cyan: #33ffff;
  --neon-pink: #ff66cc;
  --bureau-purple: #c150ff;
  --void-black: #000000;
  --text-main: #e0e0ff;
  --text-dim: #ccccff;
  
  /* Glow States */
  --glow-cyan: 0 0 6px var(--neon-cyan);
  --glow-pink: 0 0 6px var(--neon-pink);
  --glow-purple: 0 0 6px var(--bureau-purple);
  --critical-glow: 0 0 12px var(--neon-pink), 0 0 20px var(--neon-cyan);
  
  /* Structural Defaults */
  --bureau-border: 1px solid rgba(51, 255, 255, 0.25);
  --bureau-radius: 6px;
  --bg-transparency: rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2em;
  background-color: var(--void-black);
  color: var(--text-main);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  text-align: center;
  text-shadow: 0 0 2px var(--neon-cyan);
  overflow-x: hidden;
  --tilt-rotation: 0deg;
  --tilt-offset: 0px;
  transition: transform 0.08s ease-out;
}

/* Tilt-glitch effect: applied periodically by tilt-glitch.js */
body.tilt-glitch-active {
  transform: rotate(var(--tilt-rotation)) translateX(var(--tilt-offset));
}

/* Diegetic stability bypass: suppresses all glitch effects */
body.no-glitch,
body.no-glitch * {
  animation: none !important;
  transition: none !important;
}
body.no-glitch {
  transform: none !important;
}

/* Respect user reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  body, body.tilt-glitch-active {
    transform: none !important;
    transition: none !important;
  }
}

/* --- Bureau Typography --- */
h1, h2, h3 {
  font-family: 'Share Tech Mono', monospace;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bureau-purple);
  text-shadow: var(--glow-purple), 0 0 10px var(--neon-cyan);
}

h1 { font-size: 3em; color: var(--neon-pink); }
p { font-size: 1.2em; line-height: 1.6em; color: var(--neon-cyan); }

/* --- The Unified Bureau Node --- */
.bureau-node {
  background: var(--bg-transparency);
  border: var(--bureau-border);
  border-radius: var(--bureau-radius);
  padding: 1.5em;
  box-shadow: 0 0 10px rgba(51, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.bureau-node:hover {
  background: rgba(51, 255, 255, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.01);
}

/* --- Diegetic Navigation --- */
.side-nav {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: var(--bureau-border);
  backdrop-filter: blur(6px);
}

.side-nav-button {
  display: block;
  padding: 0.7em 1em;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

.side-nav-button:hover, .side-nav-button.active {
  background: rgba(255, 102, 204, 0.1);
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: var(--glow-pink);
  transform: translateX(5px);
}

/* --- Bureau UI Accents --- */
.neon-line {
  height: 3px;
  width: 90%;
  margin: 2em auto;
  background: linear-gradient(90deg, var(--neon-pink), var(--bureau-purple), var(--neon-pink));
  box-shadow: var(--glow-pink), 0 0 16px var(--bureau-purple);
}

.compliance-tag {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 5px 10px;
  background: rgba(0, 20, 0, 0.8);
  border: 1px solid #33ffcc;
  font-size: 0.7em;
  color: #33ffcc;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

.status-light-green {
  width: 6px; height: 6px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff00;
}