/* ============================================================
   TRENDTER — Help Center CSS
   assets/css/help.css
   ============================================================ */

/* ── Help layout container ─────────────────────────────── */
.hc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 62px);
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Help Left Sidebar ─────────────────────────────────── */
.hc-sidebar {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hc-sidebar::-webkit-scrollbar { width: 4px; }
.hc-sidebar::-webkit-scrollbar-track { background: transparent; }
.hc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.hc-sidebar-header {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.hc-sidebar-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 900;
  color: var(--text); margin-bottom: 10px;
}
.hc-sidebar-search {
  position: relative;
}
.hc-sidebar-search input {
  width: 100%; padding: 8px 12px 8px 32px;
  border: 1.5px solid var(--border2);
  border-radius: 50px; background: var(--bg2);
  color: var(--text); font-size: 13px;
  font-family: var(--font-body); outline: none;
  box-sizing: border-box; transition: border-color 0.15s;
}
.hc-sidebar-search input:focus { border-color: var(--accent); background: var(--bg); }
.hc-sidebar-search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); font-size: 12px;
  color: var(--text3); pointer-events: none;
}

.hc-sidebar-nav { padding: 8px 0; }

.hc-sidebar-section { margin-bottom: 4px; }

.hc-sidebar-cat {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; width: 100%;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13px;
  font-weight: 700; color: var(--text2);
  text-align: left; transition: color 0.15s;
  justify-content: space-between;
  text-decoration: none;
}
.hc-sidebar-cat:hover { color: var(--accent); }
.hc-sidebar-cat.active { color: var(--accent); }
.hc-sidebar-cat-inner { display: flex; align-items: center; gap: 8px; }
.hc-sidebar-cat-icon { font-size: 15px; width: 20px; text-align: center; }
.hc-sidebar-cat-chevron {
  font-size: 10px; color: var(--text3);
  transition: transform 0.2s; flex-shrink: 0;
}
.hc-sidebar-section.open .hc-sidebar-cat-chevron { transform: rotate(90deg); }

.hc-sidebar-articles {
  display: none; padding: 0 0 4px;
}
.hc-sidebar-section.open .hc-sidebar-articles { display: block; }

.hc-sidebar-article {
  display: block; padding: 6px 20px 6px 48px;
  font-size: 13px; color: var(--text2);
  text-decoration: none; line-height: 1.4;
  transition: color 0.12s, background 0.12s;
  border-left: 2px solid transparent;
}
.hc-sidebar-article:hover { color: var(--accent); background: var(--accent-bg); }
.hc-sidebar-article.active {
  color: var(--accent); font-weight: 600;
  border-left-color: var(--accent);
  background: var(--accent-bg);
}

/* ── Mobile sidebar toggle ─────────────────────────────── */
.hc-mobile-bar {
  display: none;
  align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 62px; z-index: 90;
}
.hc-mobile-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  border: 1.5px solid var(--border2);
  background: var(--bg); font-size: 13px; font-weight: 600;
  color: var(--text2); cursor: pointer;
  font-family: var(--font-body); transition: border-color 0.15s;
}
.hc-mobile-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── Main content area ─────────────────────────────────── */
.hc-main {
  padding: 0;
  min-width: 0;
}

/* ── Help Center Homepage ──────────────────────────────── */
.hc-hero {
  background: linear-gradient(135deg, #fff9f6 0%, #ffffff 50%, #fff5f0 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 48px 48px;
  text-align: center;
}
.hc-hero-eyebrow {
   font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hc-hero-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; margin: 0 0 16px; color: var(--text);
  letter-spacing: -0.02em;
}
.hc-hero-desc { font-size: 16px; color: var(--text2); margin: 0 0 28px; }

/* Homepage search */
.hc-search-bar {
  position: relative; max-width: 520px; margin: 0 auto;
}
.hc-search-bar input {
  width: 100%; padding: 14px 20px 14px 48px;
  border: 2px solid var(--border2);
  border-radius: 50px; background: var(--bg);
  font-size: 15px; font-family: var(--font-body);
  color: var(--text); outline: none; box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hc-search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(255,102,46,0.15);
}
.hc-search-bar-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); font-size: 16px;
  color: var(--text3); pointer-events: none;
}
.hc-search-bar-btn {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); padding: 7px 18px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 50px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: opacity 0.15s;
}
.hc-search-bar-btn:hover { opacity: 0.9; }

/* Category cards on homepage */
.hc-cats {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}
.hc-cats-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  margin: 0 0 24px; color: var(--text);
}
.hc-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.hc-cat-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  background: var(--bg); transition: all 0.15s;
}
.hc-cat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(255,102,46,0.10);
  transform: translateY(-2px);
}
.hc-cat-icon { font-size: 28px; }
.hc-cat-name {
  font-weight: 800; font-size: 14px; color: var(--text);
  font-family: var(--font-head);
}
.hc-cat-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }
.hc-cat-count { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: auto; }

/* Popular articles */
.hc-popular {
  padding: 36px 48px;
}
.hc-popular-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  margin: 0 0 20px; color: var(--text);
}
.hc-popular-list { display: flex; flex-direction: column; gap: 2px; }
.hc-popular-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background 0.12s;
}
.hc-popular-item:hover { background: var(--bg2); }
.hc-popular-item-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-bg); display: flex;
  align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.hc-popular-item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.hc-popular-item-cat   { font-size: 12px; color: var(--text3); }
.hc-popular-item-arrow { margin-left: auto; color: var(--text3); font-size: 14px; flex-shrink: 0; }

/* ── Category page ─────────────────────────────────────── */
.hc-cat-header {
  padding: 40px 48px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff9f6 0%, #fff 100%);
}
.hc-cat-header-icon { font-size: 40px; margin-bottom: 12px; }
.hc-cat-header-title {
  font-family: var(--font-head); font-size: 30px; font-weight: 900;
  margin: 0 0 8px; color: var(--text);
}
.hc-cat-header-desc { font-size: 15px; color: var(--text2); }

.hc-article-list { padding: 32px 48px; }
.hc-article-list-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text3); margin-bottom: 12px;
}
.hc-article-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.hc-article-row:last-child { border-bottom: none; }
.hc-article-row:hover { background: var(--bg2); }
.hc-article-row-title { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.hc-article-row-arrow { color: var(--text3); font-size: 16px; flex-shrink: 0; }

/* ── Article page ──────────────────────────────────────── */
.hc-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 48px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text3); flex-wrap: wrap;
  background: var(--bg2);
}
.hc-breadcrumb a {
  color: var(--text3); text-decoration: none; font-weight: 600;
  transition: color 0.12s;
}
.hc-breadcrumb a:hover { color: var(--accent); }
.hc-breadcrumb-sep { color: var(--border2); }
.hc-breadcrumb-current { color: var(--text2); font-weight: 600; }

.hc-article {
  padding: 40px 48px 56px;
  max-width: 780px;
}
.hc-article h1 {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px);
  font-weight: 900; margin: 0 0 20px; color: var(--text);
  letter-spacing: -0.02em; line-height: 1.1;
}
.hc-article .hc-intro {
  font-size: 16px; color: var(--text2); line-height: 1.8;
  padding: 16px 20px; background: var(--bg2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}
.hc-article h2 {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  margin: 36px 0 14px; color: var(--text);
  padding-bottom: 8px; border-bottom: 2px solid var(--accent);
  
}
.hc-article h3 {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  margin: 24px 0 10px; color: var(--text);
}
.hc-article p { font-size: 15px; color: var(--text2); line-height: 1.85; margin-bottom: 16px; }
.hc-article ul, .hc-article ol { padding-left: 22px; margin-bottom: 16px; }
.hc-article li { font-size: 15px; color: var(--text2); line-height: 1.85; margin-bottom: 8px; }
.hc-article a { color: var(--accent); font-weight: 600; }
.hc-article a:hover { text-decoration: underline; }
.hc-article strong { color: var(--text); font-weight: 700; }

/* Tip box */
.hc-tip {
  background: rgba(255,102,46,0.07); border: 1.5px solid rgba(255,102,46,0.25);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 14px; color: var(--text2); margin: 20px 0; line-height: 1.7;
}

/* CTA button in articles */
.hc-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 50px; font-weight: 700;
  font-size: 14px; margin: 16px 0; transition: opacity 0.15s;
}
.hc-cta-btn:hover { opacity: 0.88; text-decoration: none !important; color: #fff; }

/* ── FAQs section ──────────────────────────────────────── */
.hc-faq { margin: 36px 0 0; }
.hc-faq h2, .hc-faq-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  margin: 0 0 16px; color: var(--text);
}
.hc-faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden;
}
.hc-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; cursor: pointer; background: var(--bg);
  font-size: 14px; font-weight: 700; color: var(--text);
  transition: background 0.12s; gap: 12px; list-style: none;
}
.hc-faq-q:hover { background: var(--bg2); }
.hc-faq-q-icon {
  font-size: 16px; color: var(--accent); flex-shrink: 0;
  transition: transform 0.2s;
}
.hc-faq-item.open .hc-faq-q-icon { transform: rotate(45deg); }
.hc-faq-a {
  display: none; padding: 0 18px 14px;
  font-size: 14px; color: var(--text2); line-height: 1.7;
  border-top: 1px solid var(--border);
}
.hc-faq-item.open .hc-faq-a { display: block; }

/* ── Related articles ──────────────────────────────────── */
.hc-related { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hc-related-title {
  font-size: 16px; font-weight: 800; font-family: var(--font-head);
  color: var(--text); margin-bottom: 14px;
}
.hc-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.12s; background: var(--bg);
}
.hc-related-item:hover {
  border-color: var(--accent); background: var(--accent-bg);
}
.hc-related-item-icon {
  width: 28px; height: 28px; background: var(--accent-bg);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
}
.hc-related-item-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.hc-related-item-arrow { margin-left: auto; color: var(--text3); font-size: 12px; flex-shrink: 0; }

/* ── Was This Helpful ──────────────────────────────────── */
.hc-helpful {
  margin: 40px 0 0; padding: 28px;
  background: var(--bg2); border-radius: var(--radius);
  text-align: center; border: 1px solid var(--border);
}
.hc-helpful-title {
  font-size: 16px; font-weight: 800; font-family: var(--font-head);
  margin-bottom: 16px; color: var(--text);
}
.hc-helpful-btns { display: flex; justify-content: center; gap: 12px; }
.hc-helpful-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 50px;
  border: 1.5px solid var(--border2); background: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); color: var(--text2);
  transition: all 0.15s;
}
.hc-helpful-btn:hover, .hc-helpful-btn.active-yes { border-color: var(--success); color: var(--success); background: rgba(34,197,94,0.07); }
.hc-helpful-btn.active-no  { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.07); }
.hc-helpful-thanks { font-size: 14px; color: var(--text2); font-style: italic; }

/* ── Search results page ───────────────────────────────── */
.hc-search-results { padding: 32px 48px; }
.hc-search-results-header { margin-bottom: 24px; }
.hc-search-results-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 900;
  color: var(--text); margin-bottom: 4px;
}
.hc-search-results-count { font-size: 14px; color: var(--text3); }

/* ── Verification request form ─────────────────────────── */
.hc-verify-form-wrap {
  padding: 40px 48px;
  max-width: 700px;
}
.hc-form-field { margin-bottom: 20px; }
.hc-form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.hc-form-label span { font-weight: 400; color: var(--text3); }
.hc-form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm); background: var(--bg);
  color: var(--text); font-size: 14px; font-family: var(--font-body);
  box-sizing: border-box; outline: none; transition: border-color 0.15s;
}
.hc-form-input:focus { border-color: var(--accent); }
select.hc-form-input { cursor: pointer; }
textarea.hc-form-input { resize: vertical; min-height: 100px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hc-layout { grid-template-columns: 220px 1fr; }
  .hc-hero, .hc-cats, .hc-popular, .hc-article-list,
  .hc-article, .hc-search-results, .hc-verify-form-wrap,
  .hc-cat-header, .hc-breadcrumb { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 768px) {
  .hc-mobile-bar { display: flex; }
  .hc-layout {
    grid-template-columns: 1fr;
    position: relative;
  }
  .hc-sidebar {
    position: fixed; left: -280px; top: 62px; bottom: 0;
    width: 280px; height: auto; z-index: 200;
    transition: left 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    border-right: 1px solid var(--border);
  }
  .hc-sidebar.open { left: 0; }
  .hc-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 190;
    top: 62px;
  }
  .hc-sidebar-overlay.open { display: block; }

  .hc-hero, .hc-cats, .hc-popular, .hc-article-list,
  .hc-article, .hc-search-results, .hc-verify-form-wrap,
  .hc-cat-header, .hc-breadcrumb { padding-left: 16px; padding-right: 16px; }
  .hc-hero { padding-top: 36px; padding-bottom: 32px; }
  .hc-related-grid { grid-template-columns: 1fr; }
  .hc-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hc-cats-grid { grid-template-columns: 1fr; }
  .hc-helpful-btns { flex-direction: column; align-items: center; }
}