/* src/hud-target-frame.css
 * HUD-CORE-03 (#2787) — Target frame styles.
 * Hidden by default; shown only when target is non-null.
 * Structural only — no visual branding tokens (deferred to Sprint 3B).
 */

/* ── Root inner wrapper ───────────────────────────────────────────────────── */

#hud-target-frame-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
  flex-shrink: 0;
}

#hud-target-frame-inner[hidden] {
  display: none;
}

/* ── Target chip container ────────────────────────────────────────────────── */

.hud-tf {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── Header row: name + hostile indicator + threat badge ─────────────────── */

.hud-tf__header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hud-tf__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.hud-tf__hostile {
  font-size: 11px;
  font-weight: 700;
  color: #f44336;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Threat level badge ───────────────────────────────────────────────────── */

.hud-tf__threat {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 1px 4px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.hud-tf__threat--safe    { border: 1px solid #4caf50; color: #4caf50; }
.hud-tf__threat--low     { border: 1px solid #8bc34a; color: #8bc34a; }
.hud-tf__threat--medium  { border: 1px solid #ff9800; color: #ff9800; }
.hud-tf__threat--high    { border: 1px solid #f44336; color: #f44336; }
.hud-tf__threat--lethal  { border: 1px solid #9c27b0; color: #e040fb; }

/* ── Target HP bar ────────────────────────────────────────────────────────── */

.hud-tf__hp {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.hud-tf__hp-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: #66bb6a;          /* neutral / non-hostile target */
  border-radius: 2px;
  transition: width 0.1s ease;
}

.hud-tf__hp-fill--hostile {
  background: #ef5350;          /* hostile targets: red HP bar */
}
