/* style.css — Kerberos Docs HUD Aesthetic 2026 */
html, body {
  font-family: 'Share Tech Mono', monospace !important;
  font-weight: 400;
}


body {
  margin: 0;
  background-color: #080808;
  font-family: 'Share Tech Mono', monospace;
  color: #e0e0e0;
  line-height: 1.9;
  word-break: break-word;
  hyphens: auto;
}

/* Links and color accents */
a {
  color: #ff6b00;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
  color: #ff2e2e;
  text-shadow: 0 0 8px #ff2e2e;
}

/* Header */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(8, 8, 8, 0.85);
  border-bottom: 1px solid #141414;
  box-shadow: 0 0 12px rgba(255, 46, 46, 0.25);
  backdrop-filter: blur(6px);
}
.logo {
  height: 64px;
  filter: drop-shadow(0 0 6px #ff2e2e);
}
.header-right button {
  background: #111;
  color: #ff6b00;
  border: 1px solid #ff6b00;
  padding: 9px 16px;
  margin-left: 10px;
  border-radius: 4px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}
.header-right button:hover {
  background: #ff2e2e;
  border-color: #ff2e2e;
  color: #080808;
}
.menu-toggle {
  display: none;
  color: #ff6b00;
}

/* Layout */
.container {
  display: flex;
  min-height: calc(100vh - 150px);
}
.sidebar {
  width: 240px;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(8px);
  border-right: 1px solid #222;
  padding: 20px;
  transition: transform 0.3s;
}
.sidebar.open {
  transform: translateX(0);
}
.nav-title {
  color: #999;
  font-size: 0.9em;
  margin-bottom: 10px;
}
.nav-link {
  display: block;
  padding: 6px 0;
  color: #e0e0e0;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #ff2e2e;
  text-shadow: 0 0 6px #ff2e2e;
}
.nav-link.active {
  color: #ff6b00;
  text-shadow: 0 0 6px #ff6b00;
}
.nav-legal {
  margin-top: 10px;
  border-top: 1px solid #222;
  padding-top: 8px;
  color: #888;
}

.main-content {
  flex: 1;
  padding: 36px;
  background: rgba(12,12,12,0.7);
}

/* Hero + TOC + Cards */
.neon-title {
  color: #ff6b00;
  font-size: 2.4em;
  text-shadow: 0 0 8px #ff6b00, 0 0 18px #ff2e2e;
  letter-spacing: 0.6px;
  margin-top: 0;
  margin-bottom: 16px;
}
.lead {
  max-width: 700px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.9;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  line-height: 1.9;
}
.toc-list li {
  margin: 8px 0;
}
.toc-list a {
  color: #ff6b00;
}
.toc-list a:hover {
  color: #ff2e2e;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.glass-card {
  background: rgba(15,15,15,0.55);
  border: 1px solid rgba(255,46,46,0.25);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(255,46,46,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(255,46,46,0.4);
}
.glass-card h3 {
  color: #ff2e2e;
  text-shadow: 0 0 6px rgba(255,46,46,0.4);
  margin-top: 0;
}
.glass-card p {
  line-height: 1.9;
}

/* Section Titles */
h2, h3 {
  color: #ff2e2e;
  text-shadow: 0 0 6px rgba(255,46,46,0.4);
  margin-top: 26px;
  letter-spacing: 0.4px;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #222;
  padding: 32px 24px;
  color: #999;
  box-shadow: 0 0 12px rgba(255,46,46,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.footer-col h3 {
  color: #ff6b00;
  font-size: 1em;
  text-shadow: 0 0 6px rgba(255,107,0,0.4);
}
.footer-col ul {
  list-style: none;
  padding-left: 0;
}
.footer-col ul li {
  margin: 6px 0;
}
.footer-col a {
  color: #ccc;
  transition: color 0.3s ease, text-shadow 0.3s;
}
.footer-col a:hover {
  color: #ff2e2e;
  text-shadow: 0 0 6px #ff2e2e;
}
.copyright {
  text-align: center;
  font-size: 0.8em;
  color: #666;
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* Adaptive layout */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100% - 70px);
    transform: translateX(-100%);
    z-index: 99;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: inline-block;
    font-size: 1.2em;
  }
  .main-content {
    padding: 24px;
  }
  .neon-title {
    font-size: 1.9em;
  }
  .logo {
    height: 56px;
  }
}
.hero, .lead {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Neon Hero upgrade */
.neon-hero {
  background: radial-gradient(circle at 50% 0%, rgba(255,46,46,0.07), rgba(8,8,8,1) 70%);
  border: 1px solid rgba(255,46,46,0.12);
  border-radius: 10px;
  margin-bottom: 40px;
  padding: 40px 30px;
  box-shadow: 0 0 20px rgba(255,46,46,0.25), inset 0 0 10px rgba(255,46,46,0.1);
  text-align: center;
  position: relative;
}

.neon-hero::before {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2e2e, #ff6b00, transparent);
  margin: 0 auto 24px auto;
  border-radius: 1px;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.neon-title small {
  font-size: 0.6em;
  color: #ff2e2e;
  text-shadow: 0 0 6px #ff2e2e;
}
.highlight {
  color: #ff2e2e;
  text-shadow: 0 0 8px rgba(255,46,46,0.6);
}
.cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
  padding: 10px 22px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.4px;
  transition: all 0.3s;
}
.btn-primary {
  background: #ff2e2e;
  border: 1px solid #ff2e2e;
  color: #080808;
  box-shadow: 0 0 10px rgba(255,46,46,0.35);
}
.btn-primary:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  box-shadow: 0 0 16px rgba(255,107,0,0.4);
}
.btn-ghost {
  background: transparent;
  border: 1px solid #ff6b00;
  color: #ff6b00;
}
.btn-ghost:hover {
  color: #ff2e2e;
  border-color: #ff2e2e;
  box-shadow: 0 0 14px rgba(255,46,46,0.4);
}


/* ======= MOBILE ADAPTATION: HUD BURGER MENU ======= */
@media (max-width: 900px) {
  body, html {
    overflow-x: hidden;
  }

  .container {
    flex-direction: column;
    width: 100%;
  }

  .hud-header {
    padding: 14px 20px;
  }

  .logo {
    height: 56px;
  }

  .menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #ff6b00;
    font-size: 1.6em;
    cursor: pointer;
    transition: color 0.3s;
  }
  .menu-toggle:hover {
    color: #ff2e2e;
  }

  /* Sidebar overlay effect */
  .sidebar {
    position: fixed;
    top: 68px;
    left: 0;
    width: 250px;
    height: calc(100% - 68px);
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid #222;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 20px rgba(255,46,46,0.2);
  }

  /* Content hides behind translucent mask when menu open */
  .page-wrapper::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 900;
  }
  .sidebar.open ~ main::after,
  .sidebar.open ~ .page-wrapper::after {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    padding: 26px 20px;
  }

  .cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .neon-title {
    font-size: 1.8em;
  }
}
/* ======= LINK CARDS + COPY BUTTONS STYLING ======= */
.cards-grid .glass-card {
  position: relative;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 0 10px rgba(255, 46, 46, 0.15), inset 0 0 10px rgba(255, 46, 46, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards-grid .glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.45);
}

.cards-grid .glass-card h3 {
  color: #ff2e2e;
  text-shadow: 0 0 8px rgba(255, 46, 46, 0.6);
  margin-top: 0;
  font-size: 1.1em;
}

.cards-grid .glass-card p code {
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 3px;
  padding: 2px 4px;
}

.cards-grid .glass-card button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 5px 12px 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9em;
  border-radius: 4px;
  padding: 6px 14px;
  border: 1px solid #ff6b00;
  background: rgba(8, 8, 8, 0.7);
  color: #ff6b00;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cards-grid .glass-card button i {
  color: #ff2e2e;
  text-shadow: 0 0 4px rgba(255, 46, 46, 0.7);
}

.cards-grid .glass-card button:hover {
  background: #ff2e2e;
  color: #080808;
  border-color: #ff2e2e;
  box-shadow: 0 0 14px rgba(255, 46, 46, 0.5);
}

.cards-grid .glass-card button:active {
  transform: scale(0.96);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
}

/* subtle flicker effect for card border */
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 46, 46, 0.15); }
  50% { box-shadow: 0 0 18px rgba(255, 107, 0, 0.35); }
}
.cards-grid .glass-card:hover {
  animation: cardPulse 2s infinite ease-in-out;
}
