/* src/ui-next-action.css
 * UI-FEEDBACK-23 (#2806) — "Next suggested action" bottom-center HUD chip.
 * Slide-up from bottom, auto-dismiss, one chip at a time.
 * z-index 8600: above HUD chips (~1000), below death overlay (~9999).
 */

/* ── Chip — positioned at bottom-center ─────────────────────────────── */

#na-chip {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 8600;

  min-width: 280px;
  max-width: 360px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  pointer-events: auto;

  opacity: 0;
  transition: opacity 0.20s ease, transform 0.20s ease;
}

/* ── Visible state (slide up) ────────────────────────────────────────── */

#na-chip.na-chip--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Leaving state (slide down) ──────────────────────────────────────── */

#na-chip.na-chip--leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ── Inner row (keybind badge + text block) ──────────────────────────── */

.na-chip__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Keybind badge ───────────────────────────────────────────────────── */

.na-chip__keybind {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.04em;
}

/* ── Text block ──────────────────────────────────────────────────────── */

.na-chip__text {
  flex: 1;
  min-width: 0;
}

/* ── Primary label ───────────────────────────────────────────────────── */

.na-chip__label {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.90),
    0 0 6px rgba(0, 0, 0, 0.60);
}

/* ── Secondary subtext ───────────────────────────────────────────────── */

.na-chip__subtext {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Subtle top accent line ──────────────────────────────────────────── */

#na-chip::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: rgba(99, 179, 237, 0.40);
  border-radius: 1px;
}
