/* Demo chrome for the FX Strength Terminal demo: badge, start button, guided tour.
   Uses the app's own CSS variables from styles.css. Everything is prefixed fxd- to stay apart
   from the real app's classes. The badge and start button sit in the terminal header,
   right of the LIVE indicator, so they never cover app content. */

.fxd-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: -4px 0 -4px 4px; /* keep the header at its original height */
}

.fxd-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-sec);
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: default;
  white-space: nowrap;
}

.fxd-start {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--positive);
  background: var(--positive-dim);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.fxd-start:hover { background: rgba(34, 197, 94, 0.2); border-color: var(--positive); }
.fxd-start:focus-visible, .fxd-btn:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.fxd-start[hidden] { display: none; }

/* Highlight ring with a soft spotlight around the current element */
.fxd-ring {
  position: fixed;
  z-index: 8000;
  pointer-events: none;
  border: 1.5px solid var(--positive);
  border-radius: 12px;
  box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.42), 0 0 24px rgba(34, 197, 94, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
.fxd-ring.on { opacity: 1; }

/* Caption card */
.fxd-cap {
  position: fixed;
  z-index: 9001;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 12px);
  width: min(580px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border-focus);
  border-left: 2px solid var(--positive);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
  padding: 14px 16px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.fxd-cap.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fxd-cap-step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--positive);
  margin-bottom: 6px;
}
.fxd-cap-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}
.fxd-cap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.fxd-progress {
  flex: 1;
  height: 2px;
  background: var(--border-hover);
  border-radius: 2px;
  overflow: hidden;
}
.fxd-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--positive);
}
.fxd-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  cursor: pointer;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-sec);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.fxd-btn:hover { color: var(--text); border-color: var(--border-focus); }
.fxd-btn.primary { background: var(--text); color: #000; border-color: var(--text); }
.fxd-btn.primary:hover { background: rgba(255, 255, 255, 0.88); }

@media (prefers-reduced-motion: reduce) {
  .fxd-ring, .fxd-cap { transition: opacity 0.2s; }
}
@media (max-width: 640px) {
  .fxd-cap-text { font-size: 14px; }
  .terminal-header { flex-wrap: wrap; }
  .fxd-dock { width: 100%; margin-left: 0; }
}
