/* ============================================================
   PulseCreate — SEO Answer Pages
   Shared styles for the "what people google" answer pages.
   Loaded ONLY by these pages (in addition to style.css).
   Consumes existing design tokens from style.css :root.
   Never edit style.css to change these — edit this file.
   ============================================================ */

/* ---------- LAYOUT ---------- */
.answer-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.answer-section .answer-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- QUICK ANSWER CARD (answer-box / featured-snippet bait) ---------- */
.quick-answer {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple-primary);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.quick-answer__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 0.6rem;
}
.quick-answer p {
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.quick-answer p + p { margin-top: 0.75rem; }

/* ---------- LONG ANSWER PROSE ---------- */
.answer-body { font-family: var(--font-body); }
.answer-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.answer-body p:first-of-type { color: var(--text); }
.answer-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
}
.answer-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.answer-body ul,
.answer-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.answer-body li { margin-bottom: 0.4rem; }
.answer-body li::marker { color: var(--purple-primary); }
.answer-body strong { color: var(--text); font-weight: 600; }
.answer-body a {
  color: var(--purple-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--purple-light);
  text-underline-offset: 2px;
}
.answer-body a:hover { text-decoration-color: var(--purple-dark); }
.answer-body code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.12em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--purple-darker);
}

/* ---------- CALLOUT (inline emphasis box) ---------- */
.answer-body .callout {
  background: var(--purple-surface);
  border-left: 3px solid var(--purple-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.answer-body .callout p { margin: 0; color: var(--text); }

/* ---------- RELATED GUIDES (cross-link hub) ---------- */
.answer-related {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.answer-related h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.answer-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.answer-related li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.answer-related li a:hover {
  border-color: var(--purple-light);
  background: var(--bg-soft);
  transform: translateX(3px);
}
.answer-related li a svg {
  width: 18px;
  height: 18px;
  color: var(--purple-primary);
  flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .answer-section .answer-wrap { padding: 0 1rem; }
  .quick-answer { padding: 1.1rem; }
  .answer-body p { font-size: 1rem; }
}
