/**
 * Help Center — centered search and results.
 * Dark theme; search hero fills viewport; results below.
 */

.help-center-page {
  min-height: 100vh;
  background: var(--bg0, #0c0c0f);
  padding: 0 24px 48px;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -24px;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1448px) {
  .help-center-page {
    margin-left: calc(-1 * (24px + (100vw - 1400px) / 2));
    margin-right: calc(-1 * (24px + (100vw - 1400px) / 2));
    padding-left: calc(24px + (100vw - 1400px) / 2);
    padding-right: calc(24px + (100vw - 1400px) / 2);
  }
}

/* Hero: search in the middle of the screen */
.help-center-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 64px;
  text-align: center;
}

.help-center-hero__inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.help-center-hero__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.help-center-hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted, rgba(255, 255, 255, 0.6));
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Search form */
.help-center-search {
  width: 100%;
}

.help-center-search__wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-center-search__wrap:focus-within {
  border-color: var(--accent, #8b5cf6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.help-center-search__icon {
  color: var(--muted, rgba(255, 255, 255, 0.5));
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.help-center-search__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: transparent;
  border: none;
  color: var(--text-primary, #fff);
  font-size: 1.05rem;
  outline: none;
}

.help-center-search__input::placeholder {
  color: var(--muted, rgba(255, 255, 255, 0.45));
}

.help-center-search__btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: var(--accent, #8b5cf6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.help-center-search__btn:hover {
  background: #7c3aed;
  transform: scale(1.02);
}

.help-center-search__btn:active {
  transform: scale(0.98);
}

/* Results */
.help-center-results {
  padding: 0 0 32px;
}

.help-center-container {
  max-width: 680px;
  margin: 0 auto;
}

.help-center-results__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, rgba(255, 255, 255, 0.5));
  margin: 0 0 14px;
}

.help-center-results__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-center-results__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.help-center-results__list a {
  display: block;
  padding: 14px 16px;
  background: var(--card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  color: var(--text-primary, #fff);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: 1;
  min-width: 0;
}

.help-center-results__list a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.help-center-results__cat {
  font-size: 0.8rem;
  color: var(--muted, rgba(255, 255, 255, 0.45));
  flex-shrink: 0;
}

.help-center-results__list.is-empty {
  display: none;
}

.help-center-results__empty {
  font-size: 0.95rem;
  color: var(--muted, rgba(255, 255, 255, 0.6));
  margin: 0;
}

.help-center-results__empty a {
  color: var(--accent, #8b5cf6);
  text-decoration: none;
}

.help-center-results__empty a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
