/* === Guide Page Styles === */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--oracle-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.4; }

/* Guide Hero */
.guide-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(160, 166, 173, 0.08);
}
.guide-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(30, 167, 225, 0.1);
  border: 1px solid rgba(30, 167, 225, 0.24);
  color: var(--oracle-blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.guide-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.guide-hero .guide-subtitle {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 64ch;
}
.guide-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.guide-meta span { display: flex; align-items: center; gap: 6px; }

/* === Guide Question + Subtext === */
.guide-question {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.guide-subtext {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 68ch;
}

/* === Choice Cards (Windows / Mac) === */
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 36px 40px;
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.choice-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-glow);
  transform: translateY(-4px);
}
.choice-icon {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 20px;
}
.choice-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.choice-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36ch;
}
.choice-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--oracle-blue);
  font-weight: 700;
  font-size: 1rem;
}

/* === Progress Track === */
.progress-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  padding: 0 8px;
}
.progress-track::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border-soft);
  z-index: 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-soft);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.progress-step span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.2;
}
.progress-step.is-active .progress-dot {
  background: var(--oracle-blue);
  border-color: var(--oracle-blue);
  box-shadow: 0 0 0 4px rgba(30, 167, 225, 0.2), 0 0 16px rgba(30, 167, 225, 0.3);
}
.progress-step.is-active span {
  color: var(--oracle-blue);
  font-weight: 700;
}
.progress-step.is-complete .progress-dot {
  background: var(--profit);
  border-color: var(--profit);
}
.progress-step.is-complete span {
  color: var(--text-secondary);
}

/* Guide Content Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: start;
}
.guide-content { min-width: 0; }
.guide-sidebar { position: sticky; top: 88px; }

/* Sidebar TOC */
.toc-card {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.toc-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.toc-list a:hover,
.toc-list a.active {
  background: rgba(30, 167, 225, 0.08);
  color: var(--oracle-blue);
}

/* Guide Steps */
.guide-step {
  padding: 40px 0;
  border-bottom: 1px solid rgba(160, 166, 173, 0.06);
}
.guide-step:last-child { border-bottom: none; }

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 167, 225, 0.12);
  border: 1px solid rgba(30, 167, 225, 0.3);
  color: var(--oracle-blue);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.step-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Step blocks */
.step-block {
  padding: 36px 0;
  border-bottom: 1px solid rgba(160, 166, 173, 0.06);
}
.step-block:last-of-type { border-bottom: none; }
.step-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-block p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-block p:last-child { margin-bottom: 0; }

.step-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.step-text strong { color: var(--text-primary); }

/* === Notes, Warnings, Success === */
.guide-note {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(30, 167, 225, 0.06);
  border: 1px solid rgba(30, 167, 225, 0.2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.guide-note > strong:first-child { color: var(--text-primary); display: block; margin-bottom: 6px; }
.guide-note p { margin: 0; }
.guide-note a { color: var(--oracle-blue); }

.guide-warning {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.guide-warning > strong:first-child { color: var(--text-primary); display: block; margin-bottom: 6px; }
.guide-warning p { margin: 0; }

.guide-success {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(76, 175, 80, 0.06);
  border: 1px solid rgba(76, 175, 80, 0.2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.guide-success > strong:first-child { color: var(--text-primary); display: block; margin-bottom: 6px; }
.guide-success p { margin: 0; }

/* === Verify Checkpoints === */
.verify-checkpoint {
  margin: 32px 0;
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(30, 167, 225, 0.04), rgba(76, 175, 80, 0.04));
  border: 1px solid rgba(30, 167, 225, 0.16);
}
.verify-checkpoint .verify-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.verify-checkpoint h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.verify-checkpoint p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.verify-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.verify-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.verify-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--profit);
  font-weight: 700;
  font-size: 1rem;
}

/* === Screenshots === */
.guide-screenshot {
  margin: 20px auto;
  max-width: 920px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(160, 166, 173, 0.2);
  background: #0D1117;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-screenshot:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.guide-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.guide-screenshot .img-caption {
  padding: 8px 14px;
  font-size: 0.8rem;
  color: #A0A6AD;
  background: rgba(22, 26, 31, 0.8);
  border-top: 1px solid rgba(160, 166, 173, 0.12);
}
.guide-screenshot.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  z-index: 200;
  cursor: zoom-out;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.guide-screenshot.zoomed img {
  max-height: 85vh;
  width: auto;
  max-width: 100%;
}
.screenshot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 199;
  cursor: zoom-out;
}
.screenshot-unavailable {
  margin: 20px auto;
  max-width: 920px;
  padding: 20px;
  border-radius: 10px;
  border: 1px dashed rgba(160, 166, 173, 0.15);
  background: rgba(22, 26, 31, 0.3);
  color: #555B63;
  font-size: 0.85rem;
  text-align: center;
}
.screenshot-figure {
  margin: 24px auto;
  max-width: 920px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #0a0b0e;
}
.screenshot-figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.screenshot-figure.zoomed img {
  cursor: zoom-out;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 200;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}
.screenshot-figure.zoomed::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 199;
}
.screenshot-caption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

/* Callout boxes */
.callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
}
.callout-info {
  background: rgba(30, 167, 225, 0.06);
  border: 1px solid rgba(30, 167, 225, 0.2);
  color: var(--text-secondary);
}
.callout-warning {
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.2);
  color: var(--text-secondary);
}
.callout-success {
  background: rgba(76, 175, 80, 0.06);
  border: 1px solid rgba(76, 175, 80, 0.2);
  color: var(--text-secondary);
}
.callout-danger {
  background: rgba(244, 67, 54, 0.06);
  border: 1px solid rgba(244, 67, 54, 0.2);
  color: var(--text-secondary);
}
.callout strong { color: var(--text-primary); }
.callout-icon { margin-right: 8px; }

/* === Guide Navigation === */
.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  border-top: 1px solid rgba(160, 166, 173, 0.08);
  margin-top: 32px;
}
.guide-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.guide-nav a:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-glow);
  color: var(--text-primary);
}
.guide-nav .nav-next {
  margin-left: auto;
  color: var(--oracle-blue);
  border-color: rgba(30, 167, 225, 0.24);
  background: rgba(30, 167, 225, 0.06);
}
.guide-nav .nav-next:hover {
  background: rgba(30, 167, 225, 0.12);
  border-color: var(--oracle-blue);
}
.guide-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 48%;
}
.guide-nav-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-glow);
}
.guide-nav-link .nav-dir {
  font-size: 0.78rem;
  color: var(--oracle-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.guide-nav-link .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.guide-nav-link.next { text-align: right; margin-left: auto; }

/* === Responsive === */
@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .guide-sidebar { display: none; }
  .guide-nav { flex-direction: column; }
  .guide-nav-link { max-width: 100%; }
  .guide-nav-link.next { text-align: left; }
  .guide-screenshot,
  .screenshot-unavailable,
  .screenshot-figure {
    max-width: 100%;
  }
  .choice-card {
    padding: 36px 24px 32px;
  }
  .choice-icon {
    font-size: 3.5rem;
  }
  .progress-track {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .progress-track::before {
    display: none;
  }
  .progress-step {
    flex: 0 0 auto;
    width: 72px;
  }
}
