/* ===============================
   Kerberos Docs – Terminal / HUD Theme
   Global StyleSheet | v2.7 | Jan 2026
   =============================== */

:root {
  --bg: #080808;
  --bg-panel: rgba(20, 20, 20, 0.6);
  --accent: #ff6b00;
  --accent-glow: 0 0 10px rgba(255, 107, 0, 0.6);
  --text: #d6d6d6;
  --text-dim: #777;
  --mono: 'Share Tech Mono', monospace;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
  color: #ffa860;
  text-shadow: var(--accent-glow);
}

/* ===== HEADER ===== */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid #111;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(6px);
}

.logo {
  height: 50px;
  filter: drop-shadow(0 0 6px var(--accent));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onion-btn {
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.onion-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

.menu-toggle {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.4em;
  cursor: pointer;
}
.menu-toggle:hover { color: #ffa860; }

/* ===== CONTAINER ===== */
.container {
  display: flex;
  flex: 1;
  gap: 24px;
  padding: 28px;
  max-width: 1440px;
  margin: auto;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--bg-panel);
  border: 1px solid #171717;
  padding: 22px 18px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  align-self: flex-start;
  position: sticky;
  top: 90px;
}

.nav-title {
  color: var(--accent);
  border-bottom: 1px dashed #333;
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.nav-link {
  display: block;
  padding: 6px 2px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.nav-link:hover { color: var(--accent); text-shadow: var(--accent-glow); }
.nav-link.active { color: var(--accent); text-shadow: var(--accent-glow); }

.nav-legal { font-size: 0.9em; opacity: 0.8; margin-top: 6px; }

/* ===== MAIN ===== */
main {
  flex: 1;
  background: rgba(15, 15, 15, 0.45);
  border-radius: 10px;
  border: 1px solid #111;
  padding: 38px 40px;
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.06);
  backdrop-filter: blur(10px);
}

h1, h2, h3 {
  color: var(--accent);
  text-shadow: var(--accent-glow);
  letter-spacing: 0.02em;
}

h1.glow-text {
  font-size: 1.8em;
  margin-bottom: 8px;
  color: var(--accent);
}

section {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #222;
}

/* ===== HERO SECTION ===== */
.hero {
  background: rgba(10,10,10,0.65);
  border-radius: 10px;
  padding: 60px 50px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 0 16px rgba(255,107,0,0.15);
}
.hero-content { max-width: 800px; margin: 0 auto 30px; }
.hero-subtitle {
  color: #bbb;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 14px 0 24px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-secondary {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 9px 15px;
  transition: background 0.25s;
}
.cta-secondary:hover { background: var(--accent); color: #000; }

.hero-terminal {
  text-align: left;
  background: #0b0b0b;
  border: 1px solid #151515;
  border-radius: 6px;
  color: #ffa640;
  max-width: 820px;
  margin: 30px auto 0;
  padding: 14px 18px;
  font-size: 0.93rem;
  box-shadow: inset 0 0 6px rgba(255,107,0,0.2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== TERMINAL / CLI EFFECT ===== */
.terminal-block {
  background: #0a0a0a;
  border: 1px solid #151515;
  border-radius: 6px;
  padding: 16px 18px;
  color: #ffb566;
  font-size: 0.93rem;
  line-height: 1.4;
  box-shadow: inset 0 0 10px rgba(255,107,0,0.08);
  white-space: pre-wrap;
  word-break: break-word;
}
.cursor {
  animation: blink 1.1s infinite;
  color: #ffa640;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%,100% { opacity: 0; }
}

/* ===== CONTENT ELEMENTS ===== */
.card {
  background: var(--bg-panel);
  border: 1px solid #151515;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 18px 0;
  line-height: 1.45;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255,107,0,0.35);
}

.highlight { color: #ffa640; }
blockquote {
  border-left: 2px solid var(--accent);
  margin: 16px 0;
  padding-left: 14px;
  color: #bbb;
  font-style: italic;
  line-height: 1.4;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
  font-size: 0.95rem;
  background: rgba(12,12,12,0.6);
  border: 1px solid #111;
  border-radius: 8px;
  padding: 16px 20px;
}
.toc ul { padding-left: 20px; margin: 10px 0; }
.toc li { margin: 4px 0; }
.toc a { color: #ffa640; }

/* ===== FOOTER ===== */
.site-footer {
  background: #070707;
  border-top: 1px solid #111;
  padding: 40px 26px;
  color: #a0a0a0;
  line-height: 1.5;
  word-break: break-word;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.footer-col h3 {
  color: var(--accent);
  margin: 0 0 8px 0;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin: 5px 0; }
.footer-col a { color: #ccc; }
.footer-col a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .container { flex-direction: column; padding: 18px; }
  .sidebar { width: 100%; display: none; margin-bottom: 18px; }
  .sidebar.open { display: block; }
  main { padding: 24px; }
}

@media (max-width: 600px) {
  .onion-btn { padding: 6px 10px; font-size: 0.9em; }
  h1.glow-text { font-size: 1.4em; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITY ===== */
.text-muted { color: var(--text-dim); }
hr {
  border: none;
  border-top: 1px dashed #222;
  margin: 30px 0;
}
pre {
  background: #0e0e0e;
  border: 1px solid #111;
  border-radius: 6px;
  padding: 10px;
  color: #ffcf90;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
code {
  color: #ffa640;
  background: rgba(255,107,0,0.05);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: pre-wrap;
}

/* flickering neon border for important zones */
.neon-border {
  border: 1px solid #ff6b00;
  box-shadow: 0 0 15px rgba(255,107,0,0.3),
              0 0 4px rgba(255,107,0,0.4) inset;
}
/* ===== RESPONSIVE & MENU CONTROL ===== */

/* default: hide mobile menu button on desktop */
.menu-toggle {
  display: none;
}

/* breakpoint for mobile/tablet view */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-block;
  }

  .container {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    display: none;
    margin-bottom: 18px;
    border: 1px solid #111;
  }
  .sidebar.open {
    display: block;
    animation: fadeIn 0.25s ease;
  }

  main {
    padding: 22px 18px;
    border-radius: 8px;
  }

  .hud-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-right {
    gap: 8px;
  }

  /* footer stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===== ENHANCED HEADERS WITH STATUS ===== */
h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff6b00;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 6px rgba(255,107,0,0.6);
}

h2 .status {
  font-size: 0.85em;
  opacity: 0.8;
  font-weight: normal;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.2);
}

/* ===== BEAUTIFUL BUTTONS ===== */
.copy-btn, .onion-btn, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(255,107,0,0.1);
}

.copy-btn:hover, .cta-secondary:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
}

.onion-btn {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}

.onion-btn:hover {
  background: #ffa860;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,107,0,0.5);
}

.mirror-url {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.mirror-url code {
  flex: 1;
  min-width: 280px;
  background: #0e0e0e;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #222;
  font-size: 0.95rem;
  word-break: break-all;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
