/* src/hud-player-frame.css
 * HUD-CORE-02 (#2786) — Player frame styles.
 * Structural only — no visual branding tokens (deferred to Sprint 3B).
 */

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

#hud-player-frame-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}

/* ── Skeleton (connecting state) ──────────────────────────────────────────── */

.hud-pf--skeleton {
  min-height: 60px;
  opacity: 0.4;
}

/* ── Player name ──────────────────────────────────────────────────────────── */

.hud-pf__name {
  font-size: 14px;               /* HUD_DENSITY.BASE_FONT_PX */
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ── Health bar ───────────────────────────────────────────────────────────── */

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

.hud-pf__hp-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: #4caf50;
  border-radius: 2px;
  transition: width 0.15s ease;
}

.hud-pf__hp-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  text-shadow: 0 0 2px #000;
  pointer-events: none;
  user-select: none;
}

/* ── Progression row ──────────────────────────────────────────────────────── */

.hud-pf__prog {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-pf__level {
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── XP bar ───────────────────────────────────────────────────────────────── */

.hud-pf__xp {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.hud-pf__xp-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: #9c7cff;
  border-radius: 2px;
  transition: width 0.2s ease;
}

/* ── Status effects ───────────────────────────────────────────────────────── */

.hud-pf__effects {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  min-height: 16px;
}

.hud-pf__effect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
  cursor: default;
}

.hud-pf__effect--buff   { border: 1px solid #4caf50; }
.hud-pf__effect--debuff { border: 1px solid #f44336; }
.hud-pf__effect--neutral{ border: 1px solid #9e9e9e; }

.hud-pf__effect-icon {
  width: 14px;
  height: 14px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hud-pf__effect-stacks {
  position: absolute;
  bottom: 0;
  right: 1px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.hud-pf__effect-overflow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  align-self: center;
  padding-left: 2px;
}
