/* ====================================================================
   DESIGN 33 — STUDIO INSPECTOR HUD
   Architectural prototype overlay bar for all live sector portfolio builds
   ==================================================================== */
:root {
  --d33-hud-height: 45px;
}

/* Automatic sticky offset adjustment for prototype headers when HUD is active */
.d33-has-hud .site-header,
.d33-has-hud header,
.d33-has-hud header.nav,
.d33-has-hud nav.nav,
.d33-has-hud .nav:not(.d33-hud-inner),
.d33-has-hud .topbar,
.d33-has-hud .sticky.top-0,
.d33-has-hud #main-header {
  top: var(--d33-hud-height, 45px) !important;
}

.d33-has-hud .banner {
  top: var(--d33-hud-height, 45px) !important;
}

.d33-has-hud .banner + .nav {
  top: calc(var(--d33-hud-height, 45px) + 38px) !important;
}

.d33-inspector-hud {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: #0B120F;
  color: #FFFFFF;
  border-bottom: 2px solid #C2532B;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 20px;
  box-sizing: border-box;
}

.d33-hud-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.d33-hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.d33-hud-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.d33-hud-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background: #FFFFFF;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.d33-hud-brand .accent {
  color: #D97742;
}

.d33-hud-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.d33-hud-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
}

.d33-hud-center {
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .d33-hud-center {
    display: flex;
  }
}

.d33-hud-metric {
  color: #E6A15C;
  font-weight: 600;
}

.d33-hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.d33-hud-btn-back {
  background: rgba(201, 83, 43, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(217, 119, 66, 0.55);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.d33-hud-btn-back:hover {
  background: rgba(217, 119, 66, 0.25);
  color: #FFFFFF;
  border-color: #D97742;
}

.d33-hud-btn-commission {
  background: #C2532B;
  color: #FFFFFF;
  border: 1px solid #C2532B;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.d33-hud-btn-commission:hover {
  background: #D97742;
  border-color: #D97742;
  box-shadow: 0 4px 12px rgba(194, 83, 43, 0.4);
}
