/* ============================================================================
   OFFIQA — Support hub / Help center stylesheet
   Loads AFTER offiqa-design-v2.css via extra_css. For /help/ only.
   ============================================================================ */

/* Help search bar */
.help-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 560px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.help-search:focus-within {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(63, 122, 107, 0.15), var(--shadow-sm);
}
.help-search input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.2rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  outline: none;
}
.help-search input::placeholder { color: var(--faint); }
.help-search button {
  padding: 0.65rem 1.2rem;
  margin: 0.25rem;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease;
}
.help-search button:hover { background: var(--green-700); }

/* Article category grid */
.help-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.help-category {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.help-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  color: var(--ink);
  text-decoration: none;
}
.help-category-icon {
  width: 2.6rem; height: 2.6rem;
  border-radius: var(--r-sm);
  background: var(--green-tint);
  display: grid; place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.help-category h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.help-category .article-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: auto;
}

/* Popular articles list */
.popular-articles {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.popular-articles li { margin: 0; }
.popular-articles a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.93rem;
  transition: background 0.15s ease;
}
.popular-articles li:last-child a { border-bottom: none; }
.popular-articles a:hover { background: var(--surface-2); color: var(--green-700); text-decoration: none; }
.popular-articles a::after {
  content: "→";
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.85rem;
}

@media (max-width: 1000px) {
  .help-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .help-categories { grid-template-columns: 1fr; }
  .help-search { max-width: 100%; }
}
