/*
 * help.css — Help-centre-specific styles for alvadigitaldownloads.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); }

/* 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, .screenshot img {
  display: block;
  max-width: 480px;
  width: 100%;
  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; }

/* Help article cards (used on category index pages) */
.help-article-list { display: grid; gap: 12px; margin: 24px 0; }
.help-article-card {
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.help-article-card:hover { border-color: var(--accent); }
.help-article-card .eyebrow { color: var(--muted); margin-bottom: 6px; display: block; }
.help-article-card h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.help-article-card p  { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; }
