/* Bot guide — BuildOn-themed components.
   Relies on the design tokens (:root) defined in buildon.css, which MUST be
   loaded first. This file only styles the guide-specific elements that
   buildon.css doesn't cover (tool cards, chat bubbles, callouts, tables, FAQ). */

:root {
  --amber: #b45309;
  --amber-bg: rgba(217, 119, 6, 0.10);
  --amber-line: rgba(217, 119, 6, 0.32);
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Hero (shorter than the landing hero) ---------- */

.hero--narrow {
  padding: 72px 0 56px;
}
.hero--narrow .hero-inner {
  max-width: 720px;
}

.hero-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-back:hover {
  color: var(--teal-dark);
}

.hero-cta {
  margin-top: 8px;
}

/* ---------- Guide layout ---------- */

.guide {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 8px 24px 96px;
}

.guide-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.guide-section:first-of-type {
  border-top: none;
  margin-top: 8px;
  padding-top: 0;
}

.guide-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.guide-section h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.guide-section p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.guide-section p.muted,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}
.muted-inline {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

/* ---------- Inline code + snippets ---------- */

.guide code {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  padding: 0.06em 0.4em;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--teal-dark);
}

.snippet {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  overflow-x: auto;
  margin-bottom: 16px;
}

/* ---------- Lists ---------- */

.steps,
.tips {
  padding-left: 22px;
  margin-bottom: 16px;
}
.steps li,
.tips li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Callout ---------- */

.callout {
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.callout--info {
  background: rgba(43, 169, 154, 0.08);
  border: 1px solid rgba(43, 169, 154, 0.28);
}
.callout strong {
  color: var(--ink);
}

/* ---------- Tool cards ---------- */

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.tool-card--confirm {
  border-color: var(--amber-line);
}
.tool-card p {
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.tool-id {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-muted);
  border: 1px solid var(--line);
  padding: 0.12em 0.5em;
  border-radius: 6px;
  font-weight: 500;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18em 0.6em;
  border-radius: 999px;
}
.badge--confirm {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-line);
}

/* ---------- Examples block ---------- */

.examples {
  background: var(--bg-muted);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 6px;
}
.examples-label {
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
}
.examples ul {
  padding-left: 18px;
  margin: 0;
}
.examples li {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Chat bubbles ---------- */

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 12px;
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.bubble.user {
  background: var(--teal);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.bubble.bot p {
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.bubble.bot p strong {
  color: var(--ink);
}
.bot-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.kb {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.kb-btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-muted);
}
.kb-btn--ok {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.35);
}
.kb-btn--no {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.30);
}

/* ---------- Command table ---------- */

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.93rem;
}
.cmd-table th,
.cmd-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.cmd-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cmd-table td:first-child {
  width: 30%;
  vertical-align: top;
}

/* ---------- FAQ ---------- */

.faq dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px;
}
.faq dt:first-child {
  margin-top: 0;
}
.faq dd {
  margin-left: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 6px;
}
