/* =========================================================================
   ZoneTrainer — In-app Help pages (/help/*, /fr/help/*)
   Shared by EN and FR twins. Keep page-specific rules here, not inline.
   ========================================================================= */

/* ---------- Header ---------- */
.help-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  margin-bottom: 1.5rem;
}
.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 0.75rem;
}
.help-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.help-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Anchor pills ---------- */
.nav-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.25rem 0 2rem;
}
.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-pill-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
}
.nav-pill-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Visual hub ---------- */
.hub-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.visual-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}
.visual-hub-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
}
.visual-hub-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: #38bdf8;
  transform: translateY(-2px);
}
.visual-hub-card .hub-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.visual-hub-card .hub-content strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.visual-hub-card .hub-content span {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.3;
  display: block;
}

/* ---------- Cheat cards ---------- */
.cheat-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(71, 85, 105, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.25rem;
  scroll-margin-top: 80px;
}
.cheat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cheat-badge-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cheat-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.cheat-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 10px;
}
.cheat-card p:last-child {
  margin-bottom: 0;
}

/* Layout: text on top, screenshot full-width below (readable at ~75% scale).
   `.side` keeps a side-by-side layout on desktop (used for small mock-ups). */
.cheat-grid-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cheat-text-col {
  flex: 1;
}
.cheat-visual-col {
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  .cheat-grid-row.side {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .cheat-grid-row.side .cheat-visual-col {
    flex: 0 0 340px;
    width: auto;
  }
}

/* Info boxes inside cards */
.info-box {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
}
.info-box strong.info-title {
  font-size: 0.9rem;
  color: #94a3b8;
}
.info-box p {
  font-size: 0.85rem;
  margin-top: 4px;
}
.info-box.blue {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}
.info-box.blue strong.info-title {
  color: #38bdf8;
}
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .info-stack.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.info-list {
  font-size: 0.88rem;
  color: #cbd5e1;
  padding-left: 20px;
  margin: 6px 0 0;
}
.pace-chips {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
  background: rgba(30, 41, 59, 0.4);
  padding: 12px;
  border-radius: 8px;
}
.pace-chip {
  display: inline-flex;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 3px 8px;
  background: rgba(51, 65, 85, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
}
.pace-chips .pace-note {
  font-size: 0.85rem;
  color: #e2e8f0;
  width: 100%;
}
.muted-note {
  font-size: 0.85rem;
  color: #94a3b8 !important;
}

/* ---------- Screenshots ---------- */
.ui-crop-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}
.ui-crop-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.ui-crop-caption {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
  text-align: center;
}

/* ---------- Interactive preview switcher (sections 4 & 5) ---------- */
.ui-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 3px;
  background: rgba(30, 41, 59, 0.7);
  margin-bottom: 10px;
}
.mode-tab-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mode-tab-btn:hover {
  color: #e2e8f0;
}
.mode-tab-btn.active {
  background: #38bdf8;
  color: #0f172a;
}
.mode-tab-btn.active.green {
  background: #10b981;
}
.mode-tab-btn.active.red {
  background: #ef4444;
  color: #fff;
}

/* Clickable explanation cards linked to a switcher */
.switch-card {
  cursor: pointer;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: left;
}
.switch-card strong {
  font-size: 0.9rem;
}
.switch-card p {
  font-size: 0.85rem;
  margin-top: 4px;
}
.switch-card.green {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}
.switch-card.green strong {
  color: #10b981;
}
.switch-card.green.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
}
.switch-card.blue {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.25);
}
.switch-card.blue strong {
  color: #38bdf8;
}
.switch-card.blue.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
}

.mode-tab-btn:focus-visible,
.switch-card:focus-visible,
.audio-cue-table tr[data-group]:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* ---------- Audio cue table ---------- */
.audio-cue-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 6px;
  font-size: 0.85rem;
}
.audio-cue-table th {
  text-align: left;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
}
.audio-cue-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.25);
  color: #e2e8f0;
  vertical-align: top;
}
.audio-cue-table tr[data-group] {
  cursor: pointer;
  transition: background 0.2s ease;
}
.audio-cue-table tr[data-group]:hover,
.audio-cue-table tr[data-group].active {
  background: rgba(56, 189, 248, 0.08);
}
.badge-mono {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.badge-mono.blue { color: #38bdf8; }
.badge-mono.green { color: #10b981; }
.badge-mono.red { color: #ef4444; }

/* ---------- Lock-screen mock ---------- */
.lockscreen-mock {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  max-width: 340px;
  margin: 0 auto;
}
.lockscreen-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.lockscreen-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.lockscreen-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: default;
}
.lockscreen-btn.primary {
  background: #38bdf8;
  color: #0f172a;
}
.lockscreen-btn:not(.primary) {
  background: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
}
.callout {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.callout p {
  font-size: 0.88rem;
  color: #e2e8f0;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-section {
  margin-top: 2rem;
  scroll-margin-top: 80px;
}
.faq-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 1rem;
}
.faq-accordion {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-accordion summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordion summary::after {
  content: '+';
  font-size: 1.2rem;
  color: #38bdf8;
  font-weight: 700;
}
.faq-accordion[open] summary::after {
  content: '−';
}
.faq-accordion[open] {
  border-color: rgba(56, 189, 248, 0.4);
}
.faq-body {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ---------- Deep-dive CTA ---------- */
.deep-dive-card {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.deep-dive-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 6px;
}
.deep-dive-card p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0 0 14px;
}
.deep-dive-card .btn {
  font-size: 0.85rem;
  padding: 8px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .visual-hub-card,
  .nav-pill-btn,
  .mode-tab-btn,
  .switch-card {
    transition: none;
  }
  .visual-hub-card:hover {
    transform: none;
  }
}
