/* ============================================
   HELP CENTER — HappenGrid
   Matches global design system
   ============================================ */

/* Text gradient (local alias) */
.text-gradient {
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.help-page {
  padding: 5rem 0 4rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding: 2.5rem 0 1.5rem;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(270, 80%, 65%, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-header > p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.875rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(270, 80%, 65%, 0.12);
}

.search-box input::placeholder {
  color: var(--muted-foreground);
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.9) 0%, hsla(240, 15%, 8%, 0.9) 100%);
  border: 1px solid hsla(270, 30%, 35%, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
}

.contact-card:hover {
  border-color: hsla(270, 60%, 50%, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px hsla(0, 0%, 0%, 0.4), 0 0 30px hsla(270, 80%, 65%, 0.1);
}

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(270, 80%, 65%, 0.1);
  border: 1px solid hsla(270, 80%, 65%, 0.2);
  border-radius: 0.875rem;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--foreground);
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  margin-bottom: 3.5rem;
}

.faq-section > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category > h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-category > h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  border-radius: 2px;
}

.faq-item {
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.9) 0%, hsla(240, 15%, 8%, 0.9) 100%);
  border: 1px solid hsla(270, 30%, 35%, 0.2);
  border-radius: 0.875rem;
  margin-bottom: 0.625rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: hsla(270, 60%, 50%, 0.3);
}

.faq-item.active {
  border-color: hsla(270, 60%, 50%, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  gap: 1rem;
}

.faq-question:hover {
  background: hsla(270, 80%, 65%, 0.04);
}

.faq-question svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.125rem;
  border-top: 1px solid hsla(270, 30%, 35%, 0.15);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-top: 0.875rem;
}

.faq-answer a {
  color: var(--primary);
  font-weight: 500;
}

.faq-answer a:hover {
  color: var(--violet-soft);
}

/* ============================================
   NEED HELP SECTION
   ============================================ */
.need-help {
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.9) 0%, hsla(270, 30%, 12%, 0.9) 100%);
  border: 1px solid hsla(270, 30%, 35%, 0.2);
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.need-help::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, hsla(270, 80%, 65%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.need-help h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--foreground);
}

.need-help p {
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

.need-help .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
