/* src/hud-objective-tracker.css
 * HUD-CORE-07 (#2793) — Objective tracker styles.
 * Attaches to #hud-right-sidebar (Section 1, Quests).
 * Structural only — visual tokens deferred to Sprint 3B.
 */

/* ── Section root ─────────────────────────────────────────────────────────── */

#hud-obj-tracker {
  background: rgba(10, 10, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  margin: 8px;
  min-height: 80px;
  overflow: hidden;
  pointer-events: auto;
}

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

.hud-obj__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-obj__section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: #64748b;
  text-transform: uppercase;
}

.hud-obj__caret {
  font-size: 10px;
  color: #475569;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.hud-obj__body {
  padding: 8px 10px;
}

.hud-obj__body--hidden {
  display: none;
}

/* ── Empty placeholder ────────────────────────────────────────────────────── */

.hud-obj__empty {
  font-size: 12px;
  color: #475569;
  font-style: italic;
}

/* ── Objective title ──────────────────────────────────────────────────────── */

.hud-obj__title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Step list ────────────────────────────────────────────────────────────── */

.hud-obj__steps {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.hud-obj__step {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 1px 0;
  font-size: 12px;
  color: #e2e8f0;
}

.hud-obj__step--done {
  color: #475569;
  text-decoration: line-through;
}

.hud-obj__step-mark {
  flex: 0 0 14px;
  font-size: 12px;
  color: #64748b;
}

.hud-obj__step--done .hud-obj__step-mark {
  color: #22c55e;
}

.hud-obj__step-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-obj__step-prog {
  font-size: 10px;
  color: #94a3b8;
  display: inline-block;
}

/* WRECK-CONTRACTS-CLIENT-06 (#4422) — objective-tick micro-pulse.
 * Single cyan scale/color flash per tick (WCAG 2.3.1-safe: one pulse,
 * no saturated red). Restarted from JS by re-adding the class. */
@keyframes hud-obj-tick-pulse {
  0%   { transform: scale(1);    color: #94a3b8; }
  30%  { transform: scale(1.35); color: #67e8f9; }
  100% { transform: scale(1);    color: #94a3b8; }
}
.hud-obj__step-prog--tick {
  animation: hud-obj-tick-pulse 0.45s ease-out 1;
}

.hud-obj__step--more {
  font-size: 11px;
  color: #475569;
  font-style: italic;
}

/* ── Next hint / teaser ───────────────────────────────────────────────────── */

.hud-obj__teaser {
  font-size: 11px;
  color: #475569;
  font-style: italic;
  margin-top: 4px;
}
