/* Guide page styles — extends styles.css */

.guide-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar navigation */
.guide-sidebar {
  width: 260px;
  min-width: 260px;
  background: #f8f9fb;
  border-right: 1px solid #e8e8eb;
  padding: 24px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.guide-sidebar-section {
  padding: 0 20px;
  margin-bottom: 24px;
}

.guide-sidebar-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8a9a;
  margin-bottom: 8px;
}

.guide-sidebar a {
  display: block;
  padding: 5px 20px;
  font-size: 13px;
  color: #1d1d1d;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.guide-sidebar a:hover {
  color: #1a1a74;
  background: rgba(26, 26, 116, 0.04);
}

.guide-sidebar a.active {
  color: #1a1a74;
  font-weight: 500;
  border-left-color: #1a1a74;
  background: rgba(26, 26, 116, 0.06);
}

.guide-sidebar a.sub {
  padding-left: 32px;
  font-size: 12.5px;
  color: #5a5a6e;
}

.guide-sidebar a.sub:hover {
  color: #1a1a74;
}

/* Main content */
.guide-content {
  flex: 1;
  max-width: 820px;
  padding: 40px 48px 80px;
  line-height: 1.7;
  color: #1d1d1d;
}

.guide-content h1 {
  font-family: 'Clash Grotesk', 'Inter', sans-serif;
  font-size: 2.4em;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a1a74;
  letter-spacing: -0.02em;
}

.guide-content .subtitle {
  font-size: 17px;
  color: #5a5a6e;
  margin-bottom: 40px;
  line-height: 1.6;
}

.guide-content h2 {
  font-family: 'Clash Grotesk', 'Inter', sans-serif;
  font-size: 1.6em;
  font-weight: 500;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid #e8e8eb;
  color: #1d1d1d;
}

.guide-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.guide-content h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #1d1d1d;
}

.guide-content p {
  margin: 0 0 16px;
  font-size: 15px;
}

.guide-content a {
  color: #1a1a74;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-content a:hover {
  color: #2d2d9e;
}

/* Inline code */
.guide-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: #f0f1f4;
  padding: 2px 6px;
  border-radius: 4px;
  color: #c7254e;
}

/* Code blocks */
.guide-content pre {
  background: #1a1a28;
  color: #e8e8f0;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 20px;
  line-height: 1.55;
}

.guide-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: 13px;
}

/* Syntax highlighting (minimal) */
.guide-content pre .key { color: #7dd3fc; }
.guide-content pre .str { color: #a5d6a7; }
.guide-content pre .num { color: #f9a825; }
.guide-content pre .kw  { color: #ce93d8; }
.guide-content pre .cmt { color: #6a6a7a; }
.guide-content pre .url { color: #90caf9; }

/* Tables */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}

.guide-content th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a5a6e;
  border-bottom: 2px solid #e8e8eb;
}

.guide-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f1f4;
  vertical-align: top;
}

.guide-content td code {
  font-size: 12.5px;
  white-space: nowrap;
}

/* Callout boxes */
.callout {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.callout.info {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}
.callout.info .callout-title { color: #1d4ed8; }

.callout.warning {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
}
.callout.warning .callout-title { color: #b45309; }

.callout.tip {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}
.callout.tip .callout-title { color: #15803d; }

/* Lifecycle diagram (ASCII art in pre) */
.lifecycle-diagram {
  background: #f8f9fb;
  color: #1d1d1d;
  border: 1px solid #e8e8eb;
  font-size: 13px;
}

/* Badge / pill */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.badge.terminal { background: #fee2e2; color: #991b1b; }
.badge.active   { background: #dbeafe; color: #1e40af; }
.badge.pending  { background: #fef3c7; color: #92400e; }

/* Right panel (empty space for balance) */
.guide-right {
  width: 40px;
  min-width: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .guide-sidebar { display: none; }
  .guide-content { padding: 24px 20px 60px; }
  .guide-right { display: none; }
}
