/* ═══════════════════════════════════════════════════════════════
   STOCKFISH PANEL — Schaak maar raak Academy
   Voeg dit toe aan repertoire-builder.css (of importeer apart)
   ═══════════════════════════════════════════════════════════════ */

/* Panel-container — zelfde look als .lichess-panel maar groen accent */
.sf-panel {
  background: var(--paper-mid);
  border: 1px solid var(--rule);
  border-left: 3px solid #3a7a3a;   /* groen accent = engine */
  padding: 8px 11px;
  flex-shrink: 0;
}

/* Header-rij: status links, toggle rechts */
.sf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sf-status {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  color: var(--ink-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Varianten-container */
#sfLines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Eén variantregel */
.sf-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 5px;
  border-radius: 3px;
  transition: background 0.1s;
}

.sf-line-main {
  background: var(--paper);
  border: 1px solid var(--rule);
}

.sf-line-alt {
  background: transparent;
  border: 1px solid transparent;
  opacity: 0.75;
}

.sf-line-alt:hover {
  background: var(--paper);
  opacity: 1;
}

/* Score-badge */
.sf-score {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 3.6em;
  flex-shrink: 0;
  text-align: right;
}

.sf-white { color: #2a7a2a; }
.sf-black { color: #8b1a1a; }
.sf-equal { color: var(--ink); }

/* PV-tekst */
.sf-pv {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}

/* Hint / laadbericht */
.sf-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  color: var(--ink-muted);
  font-style: italic;
  padding: 2px 4px;
}

.sf-error {
  color: #8b1a1a;
}

/* Compacte weergave op kleine schermen */
@media (max-width: 700px) {
  .sf-pv { display: none; }
}
