/* ==========================================================================
   CHAOS — BOOK ONE: ELEGANT & UN-CRAMMED HEADER + BOTTOM HUD CONTROLS
   ========================================================================== */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  height: 64px;
  z-index: 1000;
  border-radius: 32px;
  box-sizing: border-box;
  overflow: hidden;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-bright);
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

/* Nav Menu: Spacious & Non-Wrapping */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-red);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-bright);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-text-bright);
  padding: 8px 12px;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Bottom Floating HUD Controls Bar (Sleek Bottom Right) */
.hud-fixed-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background-color: var(--color-panel-glass);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  box-shadow: 0 10px 30px var(--color-shadow);
  max-width: calc(100vw - 40px);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 84px;
  left: 16px;
  right: 16px;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 999;
  box-shadow: 0 20px 50px var(--color-shadow);
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-bright);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* Breakpoint for Mobile Header Layout (< 960px) */
@media (max-width: 960px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}
