/* ════════════════════════════════════════════════════════════════════
   guide.css — User Guide page-specific styles
   Editorial chess aesthetic. Extends styles.css.
   ════════════════════════════════════════════════════════════════════ */

.guide-main { padding-top: 8px; }

/* ─── Cards (sections inside windows) ─── */
.guide-card {
  background: var(--surface);
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.guide-card:hover { border-color: var(--border); }
.guide-card:last-child { margin-bottom: 0; }

.guide-card.highlight {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  position: relative;
}
.guide-card.highlight::before {
  content: "★";
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  opacity: 0.7;
}

.guide-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}

.guide-card h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-card p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 10px;
  color: var(--text-soft);
}
.guide-card p:last-child { margin-bottom: 0; }

.guide-card ol, .guide-card ul {
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.guide-card li { margin-bottom: 5px; }
.guide-card li::marker { color: var(--accent); }
.guide-card strong { font-weight: 700; color: var(--text); }

/* ─── Tip / Note callouts ─── */
.tip, .note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 14px;
  color: var(--text-soft);
}
.tip { border-left: 3px solid var(--c-inacc); }
.note { border-left: 3px solid var(--c-brilliant); }
.tip::before {
  content: "💡";
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.5;
}
.note::before {
  content: "ⓘ";
  flex-shrink: 0;
  font-size: 16px;
  color: var(--c-brilliant);
  font-weight: 700;
  line-height: 1.5;
}

/* ─── Play style scale ─── */
.style-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 16px 0;
  padding: 0;
  background: linear-gradient(90deg,
    var(--c-brilliant) 0%,
    var(--c-good) 50%,
    var(--c-blunder) 100%);
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.style-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 10px 6px;
  text-align: center;
  background: var(--surface);
  color: var(--text-soft);
  border-right: 1px solid var(--border-soft);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.style-label:last-child { border-right: none; }

.style-label.solid {
  background: linear-gradient(180deg, transparent, var(--c-brilliant) 200%);
  color: var(--c-brilliant);
}
.style-label.balanced {
  background: linear-gradient(180deg, transparent, var(--c-good) 200%);
  color: var(--c-good);
}
.style-label.aggressive {
  background: linear-gradient(180deg, transparent, var(--c-blunder) 200%);
  color: var(--c-blunder);
}
[data-theme="dark"] .style-label.solid {
  background: rgba(128, 240, 240, 0.08);
  color: var(--c-brilliant);
}
[data-theme="dark"] .style-label.balanced {
  background: rgba(126, 231, 135, 0.08);
  color: var(--c-good);
}
[data-theme="dark"] .style-label.aggressive {
  background: rgba(255, 123, 114, 0.08);
  color: var(--c-blunder);
}

/* ─── Move classification list ─── */
.classification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.classification-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.symbol {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  width: 44px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  flex-shrink: 0;
}
.symbol.brilliant  { color: var(--c-brilliant); border-color: var(--c-brilliant); }
.symbol.inaccuracy { color: var(--c-inacc); border-color: var(--c-inacc); }
.symbol.mistake    { color: var(--c-mistake); border-color: var(--c-mistake); }
.symbol.blunder    { color: var(--c-blunder); border-color: var(--c-blunder); }

/* ─── Tactic grid (chips) ─── */
.tactic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tactic-grid span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: all 0.18s var(--ease);
}
.tactic-grid span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  cursor: default;
}

/* ─── Example / terminal box ─── */
.example-box {
  background: var(--text);
  color: var(--bg);
  padding: 14px 18px;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.example-box::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--c-good);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.2);
}
.example-box code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
  font-family: inherit;
}
[data-theme="dark"] .example-box {
  background: #060810;
  color: var(--c-good);
  border: 1px solid var(--border);
}

/* ─── Toggle grid ─── */
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.toggle-item {
  background: var(--surface);
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.toggle-item:hover { border-color: var(--accent); }
.toggle-item strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.toggle-item strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--c-good);
  border-radius: 5px;
}
.toggle-item strong::after {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

/* ─── Settings table ─── */
.settings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13.5px;
}
.settings-table th, .settings-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.settings-table tr:last-child td { border-bottom: none; }
.settings-table th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.settings-table td {
  background: var(--surface);
  color: var(--text-soft);
}
.settings-table td:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ─── Keyboard shortcuts ─── */
.shortcut-list {
  display: grid;
  gap: 8px;
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-soft);
  transition: border-color 0.2s;
}
.shortcut:hover { border-color: var(--accent); }
.shortcut kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  min-width: 32px;
  text-align: center;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.shortcut span { color: var(--text-soft); }

/* ─── Tips grid ─── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tip-card {
  background: var(--surface);
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  transition: all 0.2s var(--ease);
  position: relative;
}
.tip-card:nth-child(3n+2) { border-left-color: var(--c-good); }
.tip-card:nth-child(3n)   { border-left-color: var(--c-brilliant); }
.tip-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.tip-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.tip-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }

/* ─── FAQ ─── */
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item:first-child { padding-top: 0; }

.faq-item h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  display: flex;
  gap: 10px;
}
.faq-item h4::before {
  content: "Q.";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  display: flex;
  gap: 10px;
}
.faq-item p::before {
  content: "A.";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-good);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Mobile ─── */
@media (max-width: 720px) {
  .toggle-grid,
  .tips-grid { grid-template-columns: 1fr; }
  .settings-table { font-size: 12.5px; }
  .settings-table th, .settings-table td { padding: 9px 10px; }
  .style-scale { grid-template-columns: 1fr; }
  .style-label { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .style-label:last-child { border-bottom: none; }
}

@media (max-width: 540px) {
  .settings-table thead { display: none; }
  .settings-table tr {
    display: block;
    margin-bottom: 8px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
  }
  .settings-table td {
    display: block;
    border-bottom: 1px solid var(--border-soft);
    padding: 6px 12px;
  }
  .settings-table td:first-child {
    font-weight: 700;
    background: var(--surface-2);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
  }
  .settings-table td:last-child { border-bottom: none; }
}
