/* Guide-specific styles — progressive disclosure layout */

.guide-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--gray-200);
}
.guide-hero h1 { font-size: 2em; color: var(--navy); margin-bottom: 8px; }
.guide-meta {
  display: flex;
  gap: 20px;
  color: var(--gray-500);
  font-size: 0.9em;
  margin-top: 8px;
}
.guide-meta span::before { margin-right: 6px; }

.guide-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-100);
}
.guide-section:last-of-type { border-bottom: none; }
.guide-section h2 {
  font-size: 1.35em;
  color: var(--navy);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
}
.guide-section h3 {
  font-size: 1.1em;
  color: var(--gray-700);
  margin: 20px 0 10px;
}
.guide-section p { margin-bottom: 12px; color: var(--gray-700); }
.guide-section ul, .guide-section ol { margin: 12px 0; padding-left: 24px; }
.guide-section li { margin-bottom: 6px; color: var(--gray-700); }

/* Numbered steps */
.guide-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95em;
}
.step-content { flex: 1; }
.step-content h4 { font-size: 1em; margin-bottom: 4px; color: var(--gray-900); }
.step-content p { font-size: 0.92em; color: var(--gray-500); margin: 0; }

/* Before / After comparisons */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.before-after .before {
  background: #fef2f2;
  border-left: 4px solid var(--red);
  padding: 16px;
  border-radius: 0 8px 8px 0;
}
.before-after .after {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  padding: 16px;
  border-radius: 0 8px 8px 0;
}
.before-after .label {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.before .label { color: var(--red); }
.after .label { color: var(--green); }
.before-after pre {
  font-family: inherit;
  white-space: pre-wrap;
  font-size: 0.9em;
  margin: 0;
  line-height: 1.5;
}

/* Copy block */
.copy-block {
  position: relative;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  padding-top: 44px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.88em;
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 16px 0;
}
.copy-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Collapsible advanced section */
details.advanced-section {
  margin-top: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
details.advanced-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  padding: 14px 16px;
  background: var(--gray-50);
  list-style: none;
}
details.advanced-section summary::before {
  content: "\25B6\00a0";
  font-size: 0.8em;
}
details.advanced-section[open] summary::before {
  content: "\25BC\00a0";
}
details.advanced-section[open] summary {
  border-bottom: 1px solid var(--gray-200);
}
details.advanced-section .advanced-content {
  padding: 16px;
}

/* What's Next */
.whats-next {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}
.whats-next h3 { color: var(--navy); margin-bottom: 12px; }
.whats-next a { font-weight: 500; }

/* Warning / Tip boxes */
.warning-box {
  background: #fffbeb;
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.warning-box::before { content: "\26A0\FE0F "; }

.tip-box {
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.tip-box::before { content: "\1F4A1 "; }

/* Download button for GPT files */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 0.9em;
  transition: background .15s;
}
.download-btn:hover { background: var(--gray-100); text-decoration: none; }
.download-btn::before { content: "\2B07\FE0F"; }

/* Responsive */
@media (max-width: 768px) {
  .before-after { grid-template-columns: 1fr; }
  .guide-hero h1 { font-size: 1.5em; }
  .guide-step { flex-direction: column; gap: 8px; }
}
