/* =============================================================================
   ct-prism-ui.css — Prism adjustment controls for APCT/SPCT/Krimsky.
   Single responsibility: prism power display and step-adjustment buttons.
   Source: Cover-Test Clinical Reference §2.5, §6.7 [Ref 48, 87]
   ============================================================================= */

/* ── Prism card (shown only when mode requires prism) ─────────────────────── */
.ct-prism-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  background: rgba(99,179,237,0.07);
  border: 1px solid rgba(99,179,237,0.20);
  border-radius: 8px;
}

/* ── Central readout row: [−] [22Δ] [+] ──────────────────────────────────── */
.ct-prism-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* −/+ round buttons */
.ct-prism-adj {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(99,179,237,0.35);
  background: rgba(99,179,237,0.10);
  color: var(--accent, #63b3ed);
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.14s, transform 0.1s;
  flex-shrink: 0;
}

.ct-prism-adj:hover  { background: rgba(99,179,237,0.22); transform: scale(1.08); }
.ct-prism-adj:active { transform: scale(0.92); }

/* Central PD value */
.ct-prism-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.ct-prism-pd {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent, #63b3ed);
  line-height: 1;
}

.ct-prism-sub {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9.5px;
  color: var(--text-muted, rgba(255,255,255,0.42));
  text-align: center;
}

/* ── Step-size quick buttons (+2Δ / +5Δ / +10Δ) ──────────────────────────── */
.ct-prism-steps {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.ct-prism-step {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(99,179,237,0.28);
  background: rgba(99,179,237,0.07);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  transition: background 0.12s, color 0.12s;
}

.ct-prism-step:hover {
  background: rgba(99,179,237,0.18);
  color: var(--accent, #63b3ed);
}

/* ── Base direction label (§6.7) ──────────────────────────────────────────── */
.ct-prism-base {
  font-size: 10px;
  text-align: center;
  color: var(--text-muted, rgba(255,255,255,0.45));
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
}

.ct-prism-base strong {
  color: var(--accent, #63b3ed);
  font-weight: 700;
}

/* Reset link */
.ct-prism-reset {
  font-size: 9.5px;
  color: rgba(255,255,255,0.30);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline dotted;
  width: 100%;
  text-align: center;
  padding: 1px;
}

.ct-prism-reset:hover { color: rgba(255,255,255,0.60); }

/* ── Neutralisation success badge ─────────────────────────────────────────── */
.ct-neutral-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(72,187,120,0.14);
  border: 1px solid rgba(72,187,120,0.38);
  color: #68d391;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.22s, transform 0.22s;
}

.ct-neutral-badge.ct-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Highlights and Icons ─────────────────────────────────────────────── */
.ct-highlight {
  font-weight: 700;
  color: #0056b3;
  background-color: #fff3cd;
  padding: 0 4px;
  border-radius: 4px;
}

.prism-icon {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
