/* src/ui-best-find.css
 * UI-FEEDBACK-22 (#2804) — "Best find" upgrade callout chip styles.
 * Upper-right of HUD, above the loot toast stack.
 * z-index 8500: above HUD chips (~1000), below death overlay (~9999).
 */

/* ── Container (positioned anchor) ──────────────────────────────────── */

.bf-callout-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 8500;
  pointer-events: none;
}

/* ── Chip ────────────────────────────────────────────────────────────── */

.bf-callout {
  width: 240px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  pointer-events: auto;

  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.20s ease, transform 0.20s ease;
}

.bf-callout--visible {
  opacity: 1;
  transform: translateX(0);
}

.bf-callout--leaving {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.bf-callout__header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

/* ── Quality tier badge (color set inline from TIER_COLOR map) ───────── */

.bf-callout__tier {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── Item display name ───────────────────────────────────────────────── */

.bf-callout__name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Readability: text shadow on name (mirrors hud-readability.css) ──── */

.bf-callout__name,
.bf-callout__tier {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.90),
    0 0 6px rgba(0, 0, 0, 0.60);
}
