/* ============================================================
   Guide page styles — shared by all /guides/ pages
   Gives every guide sub-page the uniform hero/TOC/section
   design (previously carried as per-page inline <style> blocks).
   ============================================================ */

/* Guide-specific typography */
.guide-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(168,85,247,0.08) 100%);
  border-radius: var(--radius-xl);
}
.guide-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.guide-hero .last-updated {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
}
.guide-hero .guide-byline {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}
.guide-hero .guide-subtitle {
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Table of Contents */
.guide-toc {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.guide-toc h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-text-main);
}
.guide-toc h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}
.guide-toc ol {
  margin: 0;
  padding-left: 1.5rem;
}
.guide-toc li {
  padding: 0.35rem 0;
  color: var(--color-text-muted);
}
.guide-toc a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.guide-toc a:hover {
  color: var(--color-accent-secondary);
  text-decoration: underline;
}

/* Section cards */
.guide-section {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}
.guide-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: var(--color-text-main);
}
.guide-section h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--color-text-light);
}

/* Prompt examples */
.prompt-box {
  background: rgba(99,102,241,0.06);
  border-left: 4px solid var(--color-accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: auto;
}
.prompt-box .prompt-label {
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  display: block;
  margin-bottom: 0.35rem;
}

/* Settings table */
.guide-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.guide-table th,
.guide-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
.guide-table th {
  background: rgba(99,102,241,0.06);
  color: var(--color-accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.guide-table td {
  color: var(--color-text-muted);
}

/* Setup step blocks */
.setup-step {
  padding: 1.25rem;
  background: rgba(99,102,241,0.04);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.setup-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Pro tip callouts */
.pro-tip {
  background: linear-gradient(135deg, rgba(124,92,255,0.1) 0%, rgba(168,85,247,0.08) 100%);
  border-left: 4px solid #7c5cff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.pro-tip-label {
  font-weight: 700;
  color: #7c5cff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* FAQ section */
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(99,102,241,0.08);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

/* Methodology / author CTA */
.guide-author-cta {
  padding: 2rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 2.5rem;
}
.guide-author-cta h3 { margin: 0 0 0.75rem; }

/* Back to guides link */
.back-to-guides {
  margin-top: 1.5rem;
}

/* Cost highlight */
.cost-highlight {
  background: linear-gradient(135deg, rgba(76,175,80,0.08) 0%, rgba(129,199,132,0.06) 100%);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-align: center;
}
.cost-highlight .cost-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2e7d32;
}
.cost-highlight .cost-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Model tag */
.model-tag {
  display: inline-block;
  padding: 0.15em 0.6em;
  background: rgba(99,102,241,0.12);
  color: var(--color-accent-primary);
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Permission / feature table badges */
.badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-danger { background: rgba(220,53,69,0.12); color: #c0392b; }
.badge-warning { background: rgba(243,156,18,0.12); color: #d68910; }
.badge-success { background: rgba(76,175,80,0.12); color: #2e7d32; }
