/* ==========================================================================
   TECHNICAL SCHEMATIC & BLUEPRINT HUD STYLING
   ========================================================================== */

/* Technical Corner Brackets */
.schematic-bracket-box {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.schematic-bracket-box::before,
.schematic-bracket-box::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.schematic-bracket-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-gold);
  border-left: 2px solid var(--accent-gold);
}

.schematic-bracket-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent-gold);
  border-right: 2px solid var(--accent-gold);
}

/* Coordinate Header Badges */
.schematic-coord-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
  max-width: 100%;
}

.schematic-coord-item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  word-break: break-word;
}

.schematic-coord-item span.val {
  color: var(--accent-gold);
  font-weight: 500;
}

/* Floating Technical Crosshairs */
.crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--border-medium);
}

.crosshair::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 1px;
}

.crosshair::after {
  top: 0;
  left: 7px;
  width: 1px;
  height: 16px;
}

/* Measurement Ruler Line */
.schematic-ruler {
  position: relative;
  width: 100%;
  height: 20px;
  margin: 1.5rem 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--border-medium) 0,
    var(--border-medium) 1px,
    transparent 1px,
    transparent 10px
  );
  border-bottom: 1px solid var(--border-subtle);
}

.schematic-ruler::before {
  content: '0.00';
  position: absolute;
  left: 0;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

.schematic-ruler::after {
  content: '100.00';
  position: absolute;
  right: 0;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* HUD Top & Bottom Frames */
.hud-frame-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 60px;
  z-index: var(--z-hud);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  pointer-events: none;
}

.hud-frame-top > * {
  pointer-events: auto;
}

.hud-frame-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 48px;
  z-index: var(--z-hud);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hud-frame-bottom > * {
  pointer-events: auto;
}

/* Status Indicator Dot */
.hud-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulse-glow 2.4s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
    box-shadow: 0 0 16px var(--accent-gold);
  }
}

/* Interactive SVG Callouts */
.schematic-callout {
  stroke: var(--accent-gold);
  stroke-width: 1.25;
  stroke-dasharray: 4 2;
  fill: none;
  opacity: 0.65;
}

.schematic-node {
  fill: var(--accent-gold);
  r: 3;
}
