/* ===========================================================
   SAMARITANUS · HUD FUTURIST
   Layer adițional peste hub.css pentru efecte holographice.
   =========================================================== */

/* ---------- ANIMATED BACKDROP ---------- */
.hud-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Rotating concentric rings, big, soft */
.hud-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 1400px; height: 1400px;
  transform: translate(-50%, -50%);
  opacity: 0.12;
}
.hud-rings::before,
.hud-rings::after,
.hud-rings .ring-3 {
  content: "";
  position: absolute;
  border: 1px solid var(--hub-cyan);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hud-rings::before {
  width: 100%; height: 100%;
  border-style: dashed;
  border-color: rgba(92, 232, 255, 0.4);
  animation: hudRingSpin 80s linear infinite;
}
.hud-rings::after {
  width: 70%; height: 70%;
  border-color: rgba(121, 228, 255, 0.5);
  border-top-color: var(--hub-cyan);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: hudRingSpin 30s linear infinite reverse;
}
.hud-rings .ring-3 {
  width: 45%; height: 45%;
  border-style: dotted;
  border-color: var(--hub-cyan-glow);
  border-left-color: transparent;
  animation: hudRingSpin 50s linear infinite;
}
@keyframes hudRingSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Hexagon nodes drifting */
.hud-hex {
  position: absolute;
  width: 28px; height: 32px;
  opacity: 0.5;
  animation: hudHexFloat 14s ease-in-out infinite;
}
.hud-hex svg { width: 100%; height: 100%; display: block; }
.hud-hex.h1 { top: 14%; left: 8%;  animation-delay: 0s; }
.hud-hex.h2 { top: 22%; right: 12%; animation-delay: 2s; }
.hud-hex.h3 { bottom: 18%; left: 16%; animation-delay: 4s; }
.hud-hex.h4 { bottom: 12%; right: 20%; animation-delay: 6s; }
.hud-hex.h5 { top: 60%; left: 4%; animation-delay: 8s; }
.hud-hex.h6 { top: 70%; right: 6%; animation-delay: 10s; }
@keyframes hudHexFloat {
  0%, 100% { transform: translateY(0) rotate(0); opacity: 0.4; }
  50%      { transform: translateY(-18px) rotate(180deg); opacity: 0.75; }
}

/* Floating particles */
.hud-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--hub-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--hub-cyan), 0 0 20px var(--hub-cyan-dim);
  opacity: 0.65;
  animation: hudParticle 18s linear infinite;
}
@keyframes hudParticle {
  0%   { transform: translate(0, 100vh); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translate(20px, -10vh); opacity: 0; }
}

/* ECG strip - thin line bottom of screen */
.hud-ecg {
  position: fixed;
  left: 280px; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(2, 12, 28, 0.5));
  border-top: 1px solid var(--hub-line);
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.hud-ecg svg { width: 100%; height: 100%; }
.hud-ecg .ecg-line {
  stroke: var(--hub-green);
  stroke-width: 1.8;
  fill: none;
  filter: drop-shadow(0 0 6px var(--hub-green));
  stroke-dasharray: 2000;
  animation: ecgScroll 4s linear infinite;
}
.hud-ecg .ecg-grid { stroke: rgba(92, 232, 255, 0.08); stroke-width: 0.5; }
.hud-ecg .ecg-label {
  position: absolute;
  top: 6px; left: 12px;
  font-family: var(--hub-mono);
  font-size: 10px;
  color: var(--hub-green);
  letter-spacing: 2px;
  opacity: 0.85;
}
.hud-ecg .ecg-bpm {
  position: absolute;
  top: 6px; right: 14px;
  font-family: var(--hub-mono);
  font-size: 11px;
  color: var(--hub-cyan-soft);
  letter-spacing: 1.5px;
}
@keyframes ecgScroll {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -800; }
}

/* ---------- HUD BRACKETS pe panele ---------- */
.hub-panel, .hub-kpi, .hub-monitor-card {
  position: relative;
}
.hub-panel::before, .hub-panel::after,
.hub-monitor-card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.hub-panel::before {
  top: -1px; right: -1px;
  border-top: 2px solid var(--hub-cyan);
  border-right: 2px solid var(--hub-cyan);
  box-shadow: 0 0 8px var(--hub-cyan-glow);
}
.hub-panel::after {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid var(--hub-cyan);
  border-left: 2px solid var(--hub-cyan);
  box-shadow: 0 0 8px var(--hub-cyan-glow);
}
.hub-monitor-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--hub-cyan-dim);
  border-right: 2px solid var(--hub-cyan-dim);
}

/* KPI corner ticks */
.hub-kpi::after {
  content: "";
  position: absolute;
  bottom: 6px; right: 6px;
  width: 18px; height: 18px;
  background-image:
    linear-gradient(transparent calc(50% - 1px), var(--hub-cyan-dim) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), var(--hub-cyan-dim) 50%, transparent calc(50% + 1px));
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- TOPBAR HUD UPGRADE ---------- */
.hub-brand-logo {
  position: relative;
}
.hub-brand {
  position: relative;
}
.hub-brand::after {
  /* Inel rotativ în jurul logo-ului */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 50px; height: 50px;
  margin-top: -25px;
  margin-left: -6px;
  border: 1px dashed rgba(92, 232, 255, 0.55);
  border-radius: 50%;
  border-top-color: var(--hub-cyan);
  animation: hudRingSpin 8s linear infinite;
  pointer-events: none;
}

/* ---------- COCKPIT SECTION DECORATIONS ---------- */
.hub-section-title h1 {
  position: relative;
  padding-left: 18px;
}
.hub-section-title h1::before {
  content: "▮";
  position: absolute;
  left: 0; top: 0;
  color: var(--hub-cyan);
  text-shadow: 0 0 12px var(--hub-cyan);
  animation: hudBlink 1.6s ease-in-out infinite;
}
@keyframes hudBlink { 50% { opacity: 0.35; } }

/* ---------- KPI value with scanning highlight ---------- */
.hub-kpi-value {
  position: relative;
  display: inline-block;
}
.hub-kpi-value::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(92, 232, 255, 0.35), transparent);
  animation: hudScan 4s ease-in-out infinite;
}
@keyframes hudScan {
  0%, 100% { left: -100%; }
  50%      { left: 200%; }
}

/* ---------- MONITOR CARD ICON GLOW ---------- */
.hub-monitor-icon {
  position: relative;
  overflow: visible;
}
.hub-monitor-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--hub-cyan-dim);
  border-top-color: var(--hub-cyan);
  animation: hudRingSpin 6s linear infinite;
}

/* ---------- BIO VITALS DECOR (left strip on KPI grid) ---------- */
.hud-vitals-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.hud-vital {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(2, 12, 28, 0.5);
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.hud-vital::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--hub-cyan);
  box-shadow: 0 0 10px var(--hub-cyan);
}
.hud-vital.red::before { background: var(--hub-red); box-shadow: 0 0 10px var(--hub-red); }
.hud-vital.green::before { background: var(--hub-green); box-shadow: 0 0 10px var(--hub-green); }
.hud-vital.amber::before { background: var(--hub-amber); box-shadow: 0 0 10px var(--hub-amber); }
.hud-vital .v-svg {
  width: 60px; height: 28px;
  flex-shrink: 0;
}
.hud-vital .v-svg svg { width: 100%; height: 100%; }
.hud-vital .v-label {
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--hub-mute);
  text-transform: uppercase;
}
.hud-vital .v-value {
  font-family: var(--hub-mono);
  font-size: 17px;
  color: var(--hub-white);
  font-weight: 700;
  text-shadow: 0 0 10px var(--hub-cyan-glow);
}
.hud-vital .v-value .u { font-size: 10px; color: var(--hub-mute); margin-left: 2px; }

/* ---------- RESPONSIVE ECG ---------- */
@media (max-width: 1100px) {
  .hud-ecg { left: 220px; }
  .hud-vitals-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- BODY PADDING for ECG ---------- */
.hub-main { padding-bottom: 80px; }
