/* ═══════════════════════════════════════════
   MINESIX.IO — Setup Guide Styles
═══════════════════════════════════════════ */

.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  gap: 60px;
  align-items: start;
}

/* ── TOC Sidebar ── */
.guide-toc {
  position: sticky;
  top: 90px;
}

.toc-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.toc-link {
  display: block;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
  border-left: 2px solid transparent;
  margin-left: -1px;
  text-decoration: none;
}

.toc-link:hover { color: var(--text-secondary); }
.toc-link.active {
  color: var(--accent-purple);
  border-left-color: var(--accent-purple);
}

/* ── Guide Main ── */
.guide-main {
  min-width: 0;
}

/* Affiliate Banner */
.affiliate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 48px;
}

.aff-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aff-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.aff-left strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.aff-left p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.aff-btn { white-space: nowrap; flex-shrink: 0; }

/* Guide Section */
.guide-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.guide-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.guide-section > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ci-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.ci-icon.done {
  background: rgba(16,185,129,0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16,185,129,0.2);
}

.check-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.check-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Info Card */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.ic-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.info-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.info-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Affiliate Card */
.aff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
}

.aff-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aff-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #1B6FFF, #0047AB);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.aff-card-top strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.aff-card-top p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Warning Card */
.warning-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
}

.wc-icon { font-size: 1.2rem; flex-shrink: 0; }

.warning-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.warning-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Numbered Steps */
.steps-numbered {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.step-n {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sn-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--accent-purple);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-n code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

/* Code Block */
.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-copy-code {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-code:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

code { font-family: inherit; }

.tok-key    { color: #A855F7; }
.tok-string { color: #00D4FF; }
.tok-number { color: #10B981; }
.tok-punct  { color: #6B7280; }

/* Field Table */
.field-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
}

.ft-header {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ft-row {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  align-items: center;
  gap: 8px;
}

.ft-row:last-child { border-bottom: none; }

.ft-row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-purple);
  background: rgba(168,85,247,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.ft-row span code {
  background: rgba(0,212,255,0.08);
  color: var(--accent-cyan);
}

.req {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-align: center;
}

.req.yes { background: rgba(168,85,247,0.1); color: var(--accent-purple); }
.req.no  { background: var(--bg-elevated); color: var(--text-muted); }

/* Inline link */
.inline-link {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.inline-link:hover { color: var(--accent-cyan); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    padding-top: 88px;
    gap: 0;
  }
  .guide-toc { display: none; }
  .affiliate-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
