/* =========================================================================
   Central de Ajuda — Mais Talk
   Estilos específicos do manual. Reaproveita os tokens de styles.css
   (--navy, --blue, --red, --ink, --page, --radius, --content-max, --font...).
   ========================================================================= */

/* ---- HERO da central --------------------------------------------------- */
.help-hero {
  margin: 24px var(--card-inset) 0;
  border-radius: var(--radius-card);
  color: #fff;
  /* overflow visível: o gradiente arredondado já é clipado pelo border-radius
     (é background), e assim o dropdown de resultados da busca não é recortado. */
  overflow: visible;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(28, 100, 255, 0.35) 0%, rgba(13, 35, 64, 0) 55%),
    linear-gradient(180deg, #0d2340 0%, #071527 100%);
  text-align: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 80px);
}
.help-hero .pill-dark { margin-bottom: 22px; }
.help-hero h1 {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.help-hero p {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.82);
}

/* ---- BUSCA ------------------------------------------------------------- */
.help-search {
  position: relative;
  max-width: 620px;
  margin: 34px auto 0;
}
.help-search input {
  width: 100%;
  padding: 18px 22px 18px 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.help-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.help-search input:focus {
  border-color: var(--blue-bright);
  background: rgba(255, 255, 255, 0.12);
}
.help-search .help-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Painel de resultados (dropdown) */
.help-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(9, 20, 48, 0.28);
  overflow: hidden;
  text-align: left;
  z-index: 40;
  max-height: 60vh;
  overflow-y: auto;
}
.help-search-results[hidden] { display: none; }
.help-result {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid #eef2f8;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease;
}
.help-result:last-child { border-bottom: none; }
.help-result:hover, .help-result:focus { background: #f4f8ff; }
.help-result .help-result-kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-right: 8px;
}
.help-result .help-result-title { font-weight: 600; }
.help-result .help-result-sub {
  display: block;
  font-size: 13px;
  color: var(--muted-l);
  margin-top: 2px;
}
.help-search-empty {
  padding: 22px 20px;
  text-align: center;
  color: var(--muted-l);
  font-size: 14.5px;
}

/* ---- SEÇÃO de categorias ---------------------------------------------- */
.help-section { padding: clamp(52px, 7vw, 90px) 0 40px; }
.help-section-head { text-align: center; margin-bottom: 44px; }
.help-section-head h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.help-section-head p {
  margin-top: 10px;
  color: var(--muted-l);
  font-size: clamp(15px, 1.4vw, 18px);
}

/* Grid de cartões de categoria */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid rgba(140, 175, 245, 0.22);
  box-shadow: 0 18px 44px rgba(9, 20, 48, 0.08);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.help-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(9, 20, 48, 0.16);
  border-color: rgba(28, 100, 255, 0.4);
}
.help-card-emoji {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eaf1ff 0%, #dbe7fb 100%);
}
.help-card h3 { font-size: 20px; font-weight: 700; }
.help-card p { font-size: 14.5px; color: var(--muted-l); line-height: 1.55; }
.help-card .help-card-count {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* ---- BREADCRUMB -------------------------------------------------------- */
.help-breadcrumb {
  font-size: 14px;
  color: var(--muted-l);
  margin-bottom: 22px;
}
.help-breadcrumb a { color: var(--blue); text-decoration: none; }
.help-breadcrumb a:hover { text-decoration: underline; }
.help-breadcrumb span { margin: 0 8px; color: #b6c0d4; }

/* ---- PÁGINA de categoria ---------------------------------------------- */
.help-page { padding: 130px 0 90px; background: #f7f8fa; min-height: 60vh; }
.help-page .container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.help-cat-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.help-cat-header .help-card-emoji { flex: none; }
.help-cat-header h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  color: #0a1424;
}
.help-cat-desc { color: var(--muted-l); font-size: 16px; margin-bottom: 36px; }

/* Lista de artigos */
.help-article-list { display: flex; flex-direction: column; gap: 12px; }
.help-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8edf5;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.help-article-link:hover {
  border-color: rgba(28, 100, 255, 0.4);
  transform: translateX(3px);
  box-shadow: 0 10px 26px rgba(9, 20, 48, 0.08);
}
.help-article-link h3 { font-size: 17px; font-weight: 600; }
.help-article-link p { font-size: 13.5px; color: var(--muted-l); margin-top: 3px; }
.help-article-link .help-arrow { color: var(--blue); flex: none; }
.help-article-link .help-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa6b8;
  background: #eef1f6;
  padding: 4px 10px;
  border-radius: 999px;
  flex: none;
}

/* ---- PÁGINA de artigo -------------------------------------------------- */
.help-article-page { padding: 130px 0 90px; background: #f7f8fa; }
.help-article-page .container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.help-article-page h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: #0a1424;
  margin-bottom: 10px;
  line-height: 1.2;
}
.help-article-page .help-article-resumo {
  color: var(--muted-l);
  font-size: 17px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e6eaf1;
}
.help-article-body h2 {
  font-size: 21px;
  font-weight: 700;
  color: #0a1424;
  margin: 34px 0 14px;
}
.help-article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 15px;
}
.help-article-body ul,
.help-article-body ol {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 16px 22px;
}
.help-article-body li { margin-bottom: 8px; }
.help-article-body a { color: var(--red); text-decoration: underline; }
.help-article-body a:hover { color: #0a1424; }
.help-article-body code {
  background: #eef2f8;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #0a1424;
}
.help-article-body pre {
  background: #0d1b2f;
  color: #e6edf7;
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.help-article-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* Callouts (dica / atenção) */
.help-callout {
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.65;
  color: #24324a;
}
.help-callout strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.help-callout--dica { background: #eaf3ff; border-left: 4px solid var(--blue); }
.help-callout--dica strong { color: var(--blue); }
.help-callout--aviso { background: #fdeceb; border-left: 4px solid var(--red); }
.help-callout--aviso strong { color: var(--red); }

/* Estado "conteúdo em breve" */
.help-soon-box {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed #cdd6e4;
  border-radius: 18px;
  background: #fff;
  color: var(--muted-l);
}
.help-soon-box .help-soon-emoji { font-size: 40px; display: block; margin-bottom: 10px; }

/* Navegação anterior / próximo */
.help-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid #e6eaf1;
}
.help-nav-link {
  flex: 1;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.help-nav-link:hover { border-color: rgba(28, 100, 255, 0.4); }
.help-nav-link span {
  display: block;
  font-size: 12px;
  color: var(--muted-l);
  margin-bottom: 3px;
}
.help-nav-link strong { font-weight: 600; font-size: 15px; }
.help-nav-link--next { text-align: right; }
.help-nav-link--disabled { visibility: hidden; }

/* Erro (categoria/artigo não encontrado) */
.help-notfound { text-align: center; padding: 40px 0; }
.help-notfound h1 { margin-bottom: 12px; }
.help-notfound a { color: var(--blue); }

/* ---- Responsivo -------------------------------------------------------- */
@media (max-width: 640px) {
  .help-grid { grid-template-columns: 1fr; }
  .help-article-nav { flex-direction: column; }
  .help-nav-link--next { text-align: left; }
  .help-nav-link--disabled { display: none; }
  .help-cat-header { flex-direction: column; align-items: flex-start; }
}
