/* ============================================================
   HELP CENTER — public support page.
   Search hero, topic shortcut cards, and accordion FAQs.
   Matches the site palette (warm #f8f6f2 background, #ff385d
   accent) and the app's heading/body fonts. Used by
   pages/help-center.blade.php.
   ============================================================ */

.help {
  background: #f8f6f2;
  --help-ink: #1a1a1a;
  --help-body: #44413a;
  --help-muted: #6b6760;
  --help-line: #ece8e1;
  --help-accent: #ff385d;
  --help-max: 1120px;
}

/* ---------- Hero / search ---------- */
.help__hero {
  position: relative;
  padding: 80px 24px 56px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 56, 93, 0.07) 0%, rgba(255, 56, 93, 0) 55%),
    #fbfaf7;
  border-bottom: 1px solid var(--help-line);
  overflow: hidden;
}

.help__hero-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.help__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--help-accent);
  margin-bottom: 16px;
}

.help__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--help-accent);
}

.help__title {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--help-ink);
  margin-bottom: 14px;
}

.help__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--help-muted);
  margin-bottom: 32px;
}

.help__search {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.help__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--help-muted);
  pointer-events: none;
}

.help__search-input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--help-ink);
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 999px;
  box-shadow: 0 12px 30px -22px rgba(26, 26, 26, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help__search-input::placeholder {
  color: #a39e95;
}

.help__search-input:focus {
  outline: none;
  border-color: var(--help-accent);
  box-shadow: 0 0 0 4px rgba(255, 56, 93, 0.12);
}

/* ---------- Topic shortcut cards ---------- */
.help__topics-wrap {
  max-width: var(--help-max);
  margin: 0 auto;
  padding: 48px 24px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.help__topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 12px 30px -26px rgba(26, 26, 26, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.help__topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 56, 93, 0.4);
  box-shadow: 0 18px 36px -22px rgba(26, 26, 26, 0.45);
}

.help__topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 8px;
  color: var(--help-accent);
  background: rgba(255, 56, 93, 0.08);
}

.help__topic-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--help-ink);
}

.help__topic-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--help-muted);
}

/* ---------- FAQ layout ---------- */
.help__layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 16px;
}

.help__group {
  padding-top: 40px;
  scroll-margin-top: 96px;
}

.help__group-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--help-ink);
  margin-bottom: 18px;
}

.help__group-num {
  flex: 0 0 auto;
  font-family: var(--font-body) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--help-accent);
  background: rgba(255, 56, 93, 0.08);
  padding: 4px 9px;
  border-radius: 8px;
  line-height: 1;
  transform: translateY(-2px);
}

/* ---------- Accordion ---------- */
.help__faq {
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help__faq[open] {
  border-color: rgba(255, 56, 93, 0.35);
  box-shadow: 0 14px 32px -26px rgba(26, 26, 26, 0.4);
}

.help__faq-q {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--help-ink);
  line-height: 1.5;
}

.help__faq-q::-webkit-details-marker {
  display: none;
}

.help__faq-q::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--help-muted);
  border-bottom: 2px solid var(--help-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.help__faq[open] .help__faq-q::after {
  transform: rotate(-135deg);
  border-color: var(--help-accent);
}

.help__faq-q:hover {
  color: var(--help-accent);
}

.help__faq-a {
  padding: 0 22px 20px;
}

.help__faq-a p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--help-body);
  margin: 0;
}

.help__faq-a strong {
  color: var(--help-ink);
  font-weight: 700;
}

/* ---------- Empty search state ---------- */
.help__empty {
  text-align: center;
  font-size: 1rem;
  color: var(--help-muted);
  padding: 32px 0;
}

/* ---------- Contact callout ---------- */
.help__contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.help__contact {
  padding: 32px 34px;
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 18px;
  box-shadow: 0 12px 30px -22px rgba(26, 26, 26, 0.35);
  text-align: center;
}

.help__contact h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--help-ink);
  margin-bottom: 8px;
}

.help__contact p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--help-body);
  margin-bottom: 4px;
}

.help__contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--help-accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help__contact-mail:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(255, 56, 93, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .help__topics-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .help__hero {
    padding: 56px 20px 36px;
  }
  .help__topics-wrap {
    grid-template-columns: 1fr;
    padding: 36px 20px 4px;
  }
  .help__layout {
    padding: 32px 20px 8px;
  }
  .help__contact-wrap {
    padding: 16px 20px 64px;
  }
  .help__contact {
    padding: 26px 22px;
  }
}
