/* ===========================================================
   TILE SELECTION TOOLTIP — matches UI_Redesign/Selection_tooltip/*
   Root class (.tile-selection-tooltip) and state modifiers
   (.is-visible/.is-valid/.is-invalid) are unchanged from before —
   only the internal markup/styling is new — so js/app-init.js's
   classList toggles keep working without any JS-side renaming.

   Deliberately its OWN file, not merged into tilevalidation.css:
   that file also styles the unrelated "Claim tile validation"
   side-panel checklist and shares --tv-good/--tv-bad with it.
   This file uses its own --tst-* tokens so the two can never
   bleed into each other, and so this reskin is a one-file revert
   (delete this file + restore tilevalidation.css/app-init.js from
   backup) if it doesn't work out.
   =========================================================== */

.tile-selection-tooltip {
  --tst-teal: #5eebd0;
  --tst-red: #f0616a;
  --tst-bg: rgba(7, 14, 18, 0.94);
  --tst-text: #e8fbf5;
  --tst-text-muted: rgba(255, 255, 255, 0.45);
  --tst-track: rgba(255, 255, 255, 0.08);
  --tst-accent: var(--tst-teal);

  position: absolute;
  left: 0;
  top: 0;
  z-index: 35;
  display: none;
  width: 196px;
  padding: 11px 12px;
  background: var(--tst-bg);
  border: 1px solid color-mix(in srgb, var(--tst-accent) 40%, transparent);
  border-radius: 4px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--tst-accent) 8%, transparent);
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  color: var(--tst-text);
  pointer-events: none;
  white-space: normal;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tile-selection-tooltip.is-visible {
  display: block;
}

.tile-selection-tooltip.is-invalid {
  --tst-accent: var(--tst-red);
}

.tile-selection-tooltip__corner {
  position: absolute;
  width: 10px;
  height: 10px;
}
.tile-selection-tooltip__corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--tst-accent); border-left: 2px solid var(--tst-accent); }
.tile-selection-tooltip__corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--tst-accent); border-right: 2px solid var(--tst-accent); }
.tile-selection-tooltip__corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--tst-accent); border-left: 2px solid var(--tst-accent); }
.tile-selection-tooltip__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--tst-accent); border-right: 2px solid var(--tst-accent); }

.tile-selection-tooltip__header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.tile-selection-tooltip__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tst-accent);
  background: color-mix(in srgb, var(--tst-accent) 12%, transparent);
}
.tile-selection-tooltip__icon svg { width: 15px; height: 15px; }

.tile-selection-tooltip__count {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--tst-text);
}

.tile-selection-tooltip__label {
  margin-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tst-text-muted);
}

.tile-selection-tooltip__divider {
  height: 1px;
  background: var(--tst-track);
  margin-bottom: 10px;
}

.tile-selection-tooltip__status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tile-selection-tooltip__status-icon { width: 12px; height: 12px; color: var(--tst-accent); display: inline-flex; flex-shrink: 0; }
.tile-selection-tooltip__status-icon svg { width: 100%; height: 100%; }
.tile-selection-tooltip__status-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tst-accent);
}

.tile-selection-tooltip__sub {
  display: none;
  margin-top: 6px;
  font-size: 10px;
  color: var(--tst-text-muted);
}

.tile-selection-tooltip__progress-wrap {
  display: none;
  margin-top: 7px;
}
.tile-selection-tooltip__progress-track {
  height: 3px;
  border-radius: 2px;
  background: var(--tst-track);
  overflow: hidden;
}
.tile-selection-tooltip__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--tst-accent);
  transition: width 0.3s ease;
}
.tile-selection-tooltip__progress-label {
  margin-top: 5px;
  font-size: 9.5px;
  color: var(--tst-text-muted);
}
