/*
 * styleMenu.css — Level 1 treatment menu and paint-mode styles
 * (EXECUTION_PLAN.md §4 Session 4): the treatment row and its pill chips,
 * armed/futile states, the nudge and futile-warning callouts, the static
 * hint lines and the cursor badge. Split from style.css at the 300-line
 * cap. Display layer only.
 */

/* --- Treatment menu and paint mode (Session 4) --- */

/* Treatment row wraps; the hint span forces itself onto its own line. */
.treatment-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.menu-label {
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Selectable pill chips — visibly pressable, with a ✓ when armed. */
.treatment-menu button {
  padding: 0.45rem 1rem;
  border: 1px solid #9fb3c8;
  border-radius: 999px;
  background: #f4f7fa;
  color: #24496d;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.treatment-menu button:hover {
  background: #e6eef5;
  border-color: #2e5e8c;
}
.treatment-menu button.armed {
  background: #2e5e8c;
  border-color: #2e5e8c;
  color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
.treatment-menu button.armed::before { content: "✓ "; }

/* Futile chip: even its cheapest eligible segment exceeds the clickable
   budget — dimmed but still armable (informed, not blocked). */
.treatment-menu button.futile {
  opacity: 0.45;
  border-style: dashed;
}

.menu-warning {
  flex-basis: 100%;
  color: #a15c00;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Nudge line: shown when a road click cannot be honoured — nothing armed
   (info), the game not yet started (urgent) or paused (caution). Rendered as
   a highlighted callout so the refusal is impossible to miss. */
.menu-nudge {
  flex-basis: 100%;
  padding: 0.3rem 0.5rem;
  background: #eaf1f8;
  border-left: 3px solid #2e5e8c;
  border-radius: 3px;
  color: #2e5e8c;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Not started — the most urgent refusal: nothing the player does works yet. */
.menu-nudge.nudge-urgent {
  background: #fdecea;
  border-left-color: #c62828;
  color: #c62828;
}

/* Paused mid-game — milder: the game is live, just stopped for a moment. */
.menu-nudge.nudge-caution {
  background: #fbf3e2;
  border-left-color: #a15c00;
  color: #a15c00;
}

@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
  50% { box-shadow: 0 0 0 4px rgba(46, 94, 140, 0.35); }
}
.treatment-menu button.nudge-pulse { animation: chip-pulse 0.6s ease; }

.menu-hint {
  flex-basis: 100%;
  color: #999;
  font-size: 0.8rem;
}

/* Colour swatch in the RM-dot hint, filled from config at build time. */
.rm-dot-swatch {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.hover-info {
  min-height: 1.2rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #555;
}

body.paint-armed .road-hit { cursor: crosshair; }

/* Cursor badge naming the armed treatment and the hover cost preview. */
.cursor-badge {
  position: fixed;
  z-index: 10;
  padding: 0.2rem 0.55rem;
  background: #2c3440;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.cursor-badge.unaffordable { background: #c62828; }
