/* ══════════════════════════════════════════
   NEXORA FAQ — faq.css
   Extends style.css — do not modify style.css
══════════════════════════════════════════ */

/* ── HERO ── */
.faq-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 55%, #0d0d0d 100%);
  padding: 120px 0 56px;
  overflow: hidden;
  text-align: center;
}
.faq-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.faq-hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(229,57,53,0.2), transparent 70%);
}
.faq-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.faq-hero-inner { position: relative; z-index: 1; }
.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.3);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.faq-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.faq-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.faq-search {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.faq-search-icon { position: absolute; left: 18px; color: var(--gray); font-size: 0.9rem; }
.faq-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 44px 15px 44px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--dark);
  background: transparent;
}
.faq-search-input::placeholder { color: #aaa; }
.faq-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  transition: all .2s;
}
.faq-search-clear:hover { background: var(--bg); color: var(--red); }
.faq-search-clear.show { display: flex; align-items: center; justify-content: center; }
.faq-search-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  min-height: 18px;
}
.faq-search-hint b { color: #fff; }

/* ── CATEGORY TABS ── */
.faq-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.faq-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2px;
}
.faq-tabs::-webkit-scrollbar { display: none; }
.faq-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.faq-tab i { font-size: 0.85rem; }
.faq-tab:hover { color: var(--red); }
.faq-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* ── FAQ CONTENT ── */
.faq-content { background: var(--bg); }
.faq-group-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 22px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

/* ACCORDION */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open {
  border-color: rgba(229,57,53,0.3);
  box-shadow: 0 4px 20px rgba(229,57,53,0.08);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  font-family: var(--font);
  transition: color .2s;
}
.faq-q:hover { color: var(--red); }
.faq-item.open .faq-q { color: var(--red); }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(229,57,53,0.08);
  color: var(--red);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p {
  padding: 0 20px 20px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* NO RESULTS */
.faq-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 50px 20px;
  color: var(--gray);
}
.faq-no-results.show { display: flex; }
.faq-no-results i { font-size: 2rem; color: var(--border); }
.faq-no-results p { font-size: 0.9rem; }
.faq-no-results a { color: var(--red); font-weight: 600; }

/* ── POPULAR QUESTIONS ── */
.faq-popular { background: #fff; }
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.popular-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popular-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(229,57,53,0.2);
}
.popular-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(229,57,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--red);
  transition: all .25s;
}
.popular-card:hover .popular-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.popular-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--dark); flex: 1; }
.popular-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.popular-card:hover .popular-link { gap: 9px; }

/* ── STILL NEED HELP ── */
.faq-help { background: var(--bg); }
.faq-help-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.faq-help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.faq-help-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(229,57,53,0.2); }
.faq-help-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(229,57,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  transition: all .25s;
}
.faq-help-card:hover .faq-help-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.faq-help-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--dark); }
.faq-help-card p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-help-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:768px) {
  .faq-hero-title { font-size: 2.1rem; }
  .faq-hero { padding: 100px 0 48px; }
  .popular-grid { grid-template-columns: 1fr; }
  .faq-help-grid { grid-template-columns: 1fr 1fr; }
  .faq-q { font-size: 0.9rem; padding: 16px; }
}
@media(max-width:480px) {
  .faq-hero-title { font-size: 1.8rem; }
  .faq-help-grid { grid-template-columns: 1fr; }
}