/* ============================================
   HELP CENTER — RGO HQ
   Premium dark-mode help center (Notion/Intercom style)
   ============================================ */

/* Layout */
.help-center {
  display: flex;
  height: 100%;
  min-height: calc(100vh - 80px);
  background: var(--bg-1, #0f0f0f);
  color: var(--text-primary, #e5e5e5);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Sidebar ---- */
.hc-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-2, #1a1a1a);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hc-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary, #9ca3af);
  padding: 0 20px 12px;
  margin: 0;
}

.hc-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-secondary, #9ca3af);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  border-left: 3px solid transparent;
}

.hc-cat-btn:hover {
  color: var(--text-primary, #e5e5e5);
  background: rgba(255,255,255,.04);
}

.hc-cat-btn.active {
  color: var(--accent, #4f9eff);
  background: rgba(79,158,255,.08);
  border-left-color: var(--accent, #4f9eff);
  font-weight: 600;
}

.hc-cat-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.hc-cat-count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary, #9ca3af);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* ---- Main content ---- */
.hc-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  max-width: 860px;
}

/* Search */
.hc-search-wrap {
  position: relative;
  margin-bottom: 28px;
}

.hc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #9ca3af);
  font-size: 16px;
  pointer-events: none;
}

.hc-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-3, #242424);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: var(--text-primary, #e5e5e5);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.hc-search::placeholder {
  color: var(--text-secondary, #9ca3af);
}

.hc-search:focus {
  border-color: var(--accent, #4f9eff);
  box-shadow: 0 0 0 3px rgba(79,158,255,.15);
}

/* Breadcrumb */
.hc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hc-breadcrumb a {
  color: var(--accent, #4f9eff);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.hc-breadcrumb a:hover {
  text-decoration: underline;
}

.hc-breadcrumb .hc-bc-sep {
  opacity: .5;
}

/* Category landing — article list */
.hc-article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-article-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-2, #1a1a1a);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}

.hc-article-card:hover {
  background: var(--bg-3, #242424);
  border-color: rgba(79,158,255,.25);
  transform: translateX(3px);
}

.hc-article-card-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,158,255,.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.hc-article-card-text h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #e5e5e5);
}

.hc-article-card-text p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary, #9ca3af);
  line-height: 1.4;
}

/* Article detail */
.hc-article {
  animation: hcFadeIn .2s ease;
}

@keyframes hcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hc-article h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary, #e5e5e5);
  line-height: 1.25;
}

.hc-article-meta {
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hc-article-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-primary, #e5e5e5);
}

.hc-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary, #e5e5e5);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hc-article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-primary, #e5e5e5);
}

.hc-article-body p {
  margin: 0 0 14px;
}

.hc-article-body ul, .hc-article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.hc-article-body li {
  margin-bottom: 6px;
}

.hc-article-body strong {
  color: #fff;
  font-weight: 600;
}

.hc-article-body code {
  background: rgba(79,158,255,.1);
  color: var(--accent, #4f9eff);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Callout boxes */
.hc-callout {
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hc-callout-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hc-callout-tip {
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  color: #93c5fd;
}

.hc-callout-warn {
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.2);
  color: #fbbf24;
}

.hc-callout-important {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.2);
  color: #fca5a5;
}

/* Home / welcome grid */
.hc-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.hc-home-card {
  padding: 20px;
  background: var(--bg-2, #1a1a1a);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}

.hc-home-card:hover {
  background: var(--bg-3, #242424);
  border-color: rgba(79,158,255,.25);
  transform: translateY(-2px);
}

.hc-home-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.hc-home-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #e5e5e5);
}

.hc-home-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary, #9ca3af);
  line-height: 1.4;
}

/* Search results */
.hc-search-results-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hc-search-highlight {
  background: rgba(79,158,255,.25);
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
}

/* Empty state */
.hc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary, #9ca3af);
}

.hc-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.hc-empty p {
  font-size: 14px;
  margin: 0;
}

/* Back button */
.hc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent, #4f9eff);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-family: inherit;
}

.hc-back-btn:hover {
  text-decoration: underline;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .help-center {
    flex-direction: column;
  }

  .hc-sidebar {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 8px;
    gap: 2px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .hc-sidebar-title {
    display: none;
  }

  .hc-cat-btn {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 8px;
    border-left: none;
    font-size: 12.5px;
  }

  .hc-cat-btn.active {
    border-left-color: transparent;
    background: rgba(79,158,255,.15);
    border-radius: 8px;
  }

  .hc-cat-count {
    display: none;
  }

  .hc-main {
    padding: 20px 16px;
  }

  .hc-home-grid {
    grid-template-columns: 1fr;
  }

  .hc-article h1 {
    font-size: 22px;
  }
}
