/* ============================================================
   HELP — Shared by couple-help.html and vendor-help.html.
   Help hub: hero search, categories, article list, tickets,
   contact cards, status banner, changelog.
   Tokens resolve to css/variables.css.
   ============================================================ */

/* ── Search hero ─────────────────────────────────────────── */
.help-hero {
  background: linear-gradient(135deg, var(--color-champagne) 0%, var(--color-bone) 100%);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  margin-bottom: var(--space-6);
  text-align: center;
}
.help-eyebrow {
  font-size: var(--fs-2xs);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}
.help-title {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--color-ink);
  line-height: var(--lh-tight);
  margin-bottom: 6px;
}
.help-sub {
  font-size: 14px;
  color: var(--color-mid-grey);
  margin-bottom: 22px;
}
.help-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.help-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--color-white);
}
.help-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.18);
}
.help-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--color-mid-grey);
}
.help-popular {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--color-mid-grey);
}
.help-popular a {
  color: var(--color-accent-deep);
  text-decoration: underline;
  margin: 0 var(--space-2);
}

/* ── Category grid ───────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-6);
}
.cat-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--color-accent);
  background: rgba(201, 168, 124, 0.06);
  transform: translateY(-1px);
}
.cat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--color-champagne);
  color: var(--color-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.cat-icon i { width: 18px; height: 18px; }
.cat-name {
  font-weight: var(--fw-semibold);
  font-size: 15px;
  color: var(--color-charcoal);
}
.cat-meta {
  font-size: var(--fs-xs);
  color: var(--color-mid-grey);
}

/* ── Two-column layout ───────────────────────────────────── */
.help-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .help-cols { grid-template-columns: 1fr; } }

/* ── Article list ────────────────────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 4px; }
.article-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px var(--space-4);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.article-row:hover { background: var(--color-bone); }
.article-icon {
  width: 36px; height: 36px;
  border-radius: var(--space-2);
  background: var(--color-bone);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-icon i { width: 16px; height: 16px; color: var(--color-accent-deep); }
.article-body { flex: 1; min-width: 0; }
.article-title {
  font-weight: var(--fw-semibold);
  font-size: 14px;
  color: var(--color-charcoal);
}
.article-meta {
  font-size: var(--fs-xs);
  color: var(--color-mid-grey);
  margin-top: 2px;
}
.article-chev {
  color: var(--color-mid-grey);
  flex-shrink: 0;
}
.article-chev i { width: 16px; height: 16px; }
.article-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--color-champagne);
  color: var(--color-accent-deep);
  margin-left: 6px;
  font-weight: var(--fw-semibold);
}
.article-tag.cultural   { background: rgba(181, 196, 177, 0.3); color: #4F7152; }
.article-tag.new        { background: rgba(90, 138, 106, 0.12); color: #5A8A6A; }
.article-tag.safety     { background: rgba(192, 87, 79, 0.1); color: #C0574F; }
.article-tag.compliance { background: rgba(192, 87, 79, 0.1); color: #C0574F; }

/* ── Ticket cards ────────────────────────────────────────── */
.ticket-card {
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  padding: 14px var(--space-4);
  margin-bottom: 10px;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.ticket-title {
  font-weight: var(--fw-semibold);
  font-size: 14px;
  color: var(--color-charcoal);
  line-height: 1.4;
}
.ticket-status {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--r-pill);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticket-status.open     { background: rgba(201, 168, 124, 0.15); color: #8A6D42; }
.ticket-status.reply    { background: rgba(90, 138, 106, 0.12); color: #5A8A6A; }
.ticket-status.resolved { background: var(--color-bone); color: var(--color-mid-grey); }
.ticket-meta {
  font-size: var(--fs-xs);
  color: var(--color-mid-grey);
}
.ticket-snippet {
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  margin-top: var(--space-2);
  padding: 10px 12px;
  background: var(--color-bone);
  border-radius: var(--space-2);
  line-height: 1.5;
}

/* ── Contact cards ───────────────────────────────────────── */
.contact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.contact-card:hover {
  border-color: var(--color-accent);
  background: rgba(201, 168, 124, 0.06);
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-champagne);
  color: var(--color-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { width: 18px; height: 18px; }
.contact-body { flex: 1; min-width: 0; }
.contact-title { font-weight: var(--fw-semibold); font-size: 14px; color: var(--color-charcoal); }
.contact-meta { font-size: var(--fs-xs); color: var(--color-mid-grey); margin-top: 2px; }
.contact-pill {
  font-size: var(--fs-2xs);
  padding: 3px var(--space-2);
  border-radius: var(--r-pill);
  background: rgba(90, 138, 106, 0.12);
  color: #5A8A6A;
  font-weight: var(--fw-semibold);
}

/* ── Status banner ───────────────────────────────────────── */
.status-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(90, 138, 106, 0.08);
  border: 1px solid rgba(90, 138, 106, 0.25);
  border-radius: 10px;
  margin-bottom: 10px;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: var(--r-circle);
  background: #5A8A6A;
  flex-shrink: 0;
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--r-circle);
  background: rgba(90, 138, 106, 0.25);
  animation: helpPulse 1.6s ease-out infinite;
}
@keyframes helpPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.status-text {
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  flex: 1;
}
.status-link {
  font-size: var(--fs-xs);
  color: var(--color-accent-deep);
  text-decoration: underline;
}

/* ── What's new ──────────────────────────────────────────── */
.changelog-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-hairline);
}
.changelog-item:last-child { border-bottom: none; }
.changelog-date {
  font-size: var(--fs-2xs);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  font-weight: var(--fw-semibold);
}
.changelog-title {
  font-weight: var(--fw-semibold);
  font-size: 14px;
  color: var(--color-charcoal);
  margin-top: 4px;
}
.changelog-desc {
  font-size: var(--fs-sm);
  color: var(--color-mid-grey);
  line-height: 1.5;
  margin-top: 4px;
}

.empty-search {
  text-align: center;
  padding: 30px;
  color: var(--color-mid-grey);
  font-size: var(--fs-sm);
}
