/*
 * help.css — Help-centre-specific styles for alvacourses.com
 * Loaded after blog.css. Reuses .callout, .faq-section, .post-cta-band, .next-read,
 * .next-read-card, .breadcrumb, .post-hero, etc. from blog.css. Don't duplicate them here.
 */

/* Help index — category grid */
.help-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) { .help-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .help-category-grid { grid-template-columns: 1fr; } }

.help-category-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-category-card .eyebrow { color: var(--muted); margin-bottom: 12px; display: block; }
.help-category-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.help-category-card p  { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.help-category-card .article-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Article count line on category cards (sits below the description) */
.help-category-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px; }

/* Pagefind search container */
.help-search { max-width: 720px; margin: 32px auto 0; }
.help-search :is(.pagefind-ui__form, .pagefind-ui__search-input) { font-family: var(--font-sans); }

/* Help article steps */
.help-steps {
  list-style: none;
  counter-reset: helpstep;
  padding: 0;
  margin: 32px 0;
}
.help-steps > li {
  counter-increment: helpstep;
  position: relative;
  padding: 0 0 24px 56px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line-hair);
}
.help-steps > li:last-child { border-bottom: 0; margin-bottom: 0; }
.help-steps > li::before {
  content: counter(helpstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
}
.help-steps > li > p:first-child { margin-top: 4px; }

/* Screenshot placeholder (Phase 0 — replaced with real <picture> later) */
.screenshot-placeholder {
  margin: 16px 0;
  padding: 0;
}
.screenshot-placeholder .placeholder-frame {
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--accent-soft);
  text-align: left;
}
.screenshot-placeholder .placeholder-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 8px;
}
.screenshot-placeholder .placeholder-brief {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.screenshot-placeholder figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* Real screenshots (used once placeholders are replaced) */
.screenshot {
  margin: 16px 0;
}
.screenshot picture {
  display: block;
  max-width: 720px;
  width: 100%;
}
.screenshot img {
  display: block;
  max-width: 720px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.screenshot figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* "Was this helpful?" widget */
.article-feedback {
  margin: 48px 0 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  text-align: center;
}
.article-feedback h2 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--ink);
}
.article-feedback .feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.article-feedback button {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.article-feedback button:hover { border-color: var(--accent); background: var(--accent-soft); }
.article-feedback p { margin: 0; font-size: 13px; color: var(--muted); }
.article-feedback p a { color: var(--accent-ink); }

/* Last-updated stamp on each article */
.article-last-updated {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* "See also" / related-articles styles inherit from .next-read in blog.css */
.see-also { margin: 48px 0; }
.see-also h2 { font-size: 18px; margin-bottom: 16px; color: var(--ink); }

/* "Coming soon" empty state on category pages */
.help-coming-soon {
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--bg-2);
}
.help-coming-soon h3 { color: var(--ink); margin: 0 0 8px; }

/* ----- Category page (e.g. /help/getting-started/) — modelled on blog/index.html ----- */

/* Hero */
.help-category-hero { padding: 96px 0 40px; border-bottom: 1px solid var(--line-soft); }
.help-category-hero .breadcrumb { margin-bottom: 20px; }
.help-category-hero .eyebrow { margin-bottom: 16px; display: inline-block; }
.help-category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 18ch;
}
.help-category-hero h1 em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.help-category-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.help-back-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.help-back-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.help-back-link:hover { color: var(--accent); }
.help-article-count { color: var(--ink); font-weight: 500; }

/* Articles section */
.help-articles { padding: 64px 0 96px; }
.help-articles-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.help-articles-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

/* 3-col hairline grid (matches blog index) */
.help-articles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .help-articles-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .help-articles-list { grid-template-columns: 1fr; } }

/* Card */
.help-article-card {
  background: var(--bg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: 0;
  transition: background 0.15s ease;
}
.help-article-card:hover { background: var(--surface); }
.help-article-card:hover .help-article-h { color: var(--accent); }

.help-article-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  display: block;
}
.help-article-h {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  transition: color 0.15s ease;
}
.help-article-d {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.help-article-link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
