/* Linxy Help Center — Shared Styles */
/* Mobile-first, optimized for in-app WebView at 375px */

:root {
  --bg: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-hint: #9CA3AF;
  --border: #E5E7EB;
  --accent: #0F6E56;
  --accent-bg: #E1F5EE;
  --red: #E63946;
  --gold: #C5A55A;
  --blue: #007AFF;
  --purple: #8B5CF6;
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding-bottom: 40px;
}

a { color: var(--accent); text-decoration: none; }
a:active { opacity: 0.7; }

img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ── Layout ── */
.container { padding: 0 20px; max-width: 600px; margin: 0 auto; }

/* ── Header ── */
.help-header {
  padding: 20px 20px 0;
  max-width: 600px;
  margin: 0 auto;
}
.help-header .back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  -webkit-tap-highlight-color: transparent;
}
.help-header .back svg { width: 16px; height: 16px; }
.help-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.help-header .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── Search ── */
.search-wrap {
  position: relative;
  margin-bottom: 24px;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-hint);
}
.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-hint); }
.search-results { display: none; }
.search-results.active { display: block; }
.search-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-hint);
  font-size: 14px;
}

/* ── Category Grid ── */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.cat-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s;
}
.cat-card:active { border-color: var(--accent); }
.cat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}
.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.cat-count {
  font-size: 11px;
  color: var(--text-hint);
}

/* ── Section Headers ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ── Article List ── */
.article-list { margin-bottom: 28px; }
.article-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
  -webkit-tap-highlight-color: transparent;
}
.article-item:last-child { border-bottom: none; }
.article-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.article-info { flex: 1; min-width: 0; }
.article-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}
.article-desc {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-arrow {
  color: var(--text-hint);
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Article Content Page ── */
.article-body { padding-top: 8px; }
.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text);
}
.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 6px;
  color: var(--text);
}
.article-body p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
.article-body ul, .article-body ol {
  margin: 0 0 14px 20px;
  color: var(--text);
}
.article-body li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.55;
}

/* ── Step Cards ── */
.step-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content { flex: 1; }
.step-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Tip / Warning Boxes ── */
.tip-box {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.tip-box.tip { background: var(--accent-bg); color: #085041; }
.tip-box.warning { background: #FFF8E1; color: #633806; }
.tip-box.info { background: #E6F1FB; color: #0C447C; }
.tip-box strong { font-weight: 600; }

/* ── Footer ── */
.help-footer {
  padding: 28px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}
.help-footer p {
  font-size: 13px;
  color: var(--text-hint);
  margin-bottom: 12px;
}
.help-footer .contact-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* ── Tag Badges ── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}
.tag-new { background: #E1F5EE; color: #0F6E56; }
.tag-popular { background: #E6F1FB; color: #0C447C; }
