/* ============================================================
   faq.css — FAQ 페이지 전용 스타일
   (shared.css 위에 적재)
   ============================================================ */

/* ─── Hero ─── */
.faq-hero {
  padding: 112px var(--px) 64px;
  position: relative; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.faq-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 85% 15%, rgba(83,58,253,.13) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 95% 55%, rgba(234,34,97,.08) 0%, transparent 48%),
    radial-gradient(ellipse 45% 40% at 15% 10%, rgba(245,233,212,.70) 0%, transparent 50%),
    radial-gradient(ellipse 50% 45% at 40% -5%, rgba(199,191,253,.50) 0%, transparent 50%);
}
.faq-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(110deg, #ffffff 30%, transparent 60%);
}
.faq-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; text-align: center;
}
.faq-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clr-primary); background: var(--clr-primary-sub);
  border: 1px solid var(--clr-primary-mid);
  border-radius: var(--r-pill); padding: 5px 14px; margin-bottom: 20px;
}
.faq-hero-title {
  font-size: clamp(30px, 5vw, 52px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; color: var(--text);
}
.faq-hero-sub {
  font-size: 17px; color: var(--muted2); line-height: 1.7;
  max-width: 580px; margin: 0 auto 32px;
}

/* ─── 검색 ─── */
.faq-search-wrap { max-width: 520px; margin: 0 auto; position: relative; }
.faq-search {
  width: 100%; padding: 14px 48px 14px 20px;
  border: 1.5px solid var(--border2); border-radius: var(--r-lg);
  font-size: 15px; font-family: inherit; background: #fff;
  color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.faq-search:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(83,58,253,.1);
}
.faq-search::placeholder { color: var(--muted); }
.faq-search-icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.faq-search-count {
  text-align: center; margin-top: 10px;
  font-size: 12px; color: var(--muted); min-height: 18px;
}

/* ─── Body & Category Tabs ─── */
.faq-body { max-width: 860px; margin: 0 auto; padding: 64px var(--px) 100px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.cat-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--muted2);
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.cat-tab:hover { border-color: var(--clr-primary-mid); color: var(--clr-primary); }
.cat-tab.active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.cat-count {
  font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: var(--r-pill); background: rgba(0,0,0,.08);
}
.cat-tab.active .cat-count { background: rgba(255,255,255,.25); color: #fff; }

/* ─── Category Sections ─── */
.faq-category { margin-bottom: 56px; }
.faq-category.hidden { display: none; }
.cat-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.cat-icon {
  width: 40px; height: 40px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.cat-title  { font-size: 18px; font-weight: 700; color: var(--text); }
.cat-desc   { font-size: 13px; color: var(--muted2); margin-top: 2px; }

/* ─── FAQ Accordion ─── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: #fff; overflow: hidden; transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-2); }
.faq-item.hidden { display: none; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: transparent;
  border: none; cursor: pointer; text-align: left;
}
.faq-btn:hover { background: var(--bg2); }
.faq-q {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.5; flex: 1;
}
.faq-chevron {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--clr-primary-sub); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; transition: all .3s;
}
.faq-chevron.open { background: var(--clr-primary); color: #fff; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer.open { max-height: 600px; }
.faq-a {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted2); line-height: 1.85;
}
.faq-a strong { color: var(--text2); font-weight: 700; }
.faq-a br { display: block; content: ''; margin-top: 10px; }

/* ─── Plan Badge ─── */
.plan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: var(--r-sm);
  margin-right: 6px; vertical-align: middle; flex-shrink: 0;
}
.badge-a       { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-b       { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.badge-c       { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-d       { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-general { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* ─── No Results ─── */
.no-results { text-align: center; padding: 80px 24px; display: none; }
.no-results.show { display: block; }
.no-results-icon  { font-size: 48px; color: var(--muted); margin-bottom: 16px; }
.no-results-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.no-results-sub   { font-size: 14px; color: var(--muted2); }

/* ─── CTA 박스 ─── */
.faq-cta {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-soft) 100%);
  border-radius: var(--r-2xl); padding: 48px 40px;
  text-align: center; margin-top: 64px;
}
.faq-cta h3 {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
  color: #fff; margin: 0 0 12px;
}
.faq-cta p {
  font-size: 15px; color: rgba(255,255,255,.82);
  margin: 0 0 28px; line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .faq-hero  { padding: 88px var(--px) 48px; }
  .faq-hero-title { font-size: clamp(24px, 7vw, 36px); }
  .faq-hero-sub   { font-size: 15px; }
  .faq-body  { padding: 40px var(--px) 80px; }
  .cat-tabs  { gap: 6px; margin-bottom: 32px; }
  .cat-tab   { font-size: 12px; padding: 7px 12px; }
  .faq-btn   { padding: 16px 18px; }
  .faq-q     { font-size: 14px; }
  .faq-a     { padding: 14px 18px 16px; font-size: 13px; }
  .faq-cta   { padding: 32px 24px; }
  .cat-header { gap: 10px; }
  .cat-icon  { width: 34px; height: 34px; font-size: 15px; }
  .cat-title { font-size: 16px; }
}
@media (max-width: 480px) {
  .faq-cta { padding: 28px 20px; }
}
