/* ==========================================
   FAQ Page  -  faq/index.html
========================================== */

/* ── Hero ─────────────────────────────── */
.faq-hero {
    position: relative;
    padding: 130px 5% 60px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 50% -5%, rgba(37,99,235,0.09) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 90% 80%, rgba(124,58,237,0.06) 0%, transparent 55%);
}
.faq-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(37,99,235,0.10) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, black 5%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, black 5%, transparent 100%);
}
/* Floating decoration pills */
.faq-deco {
    position: absolute; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: var(--radius-full);
    font-size: 12.5px; font-weight: 600;
    background: white; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); color: var(--text-2);
    white-space: nowrap; pointer-events: none;
    animation: faqDecoFloat 4s ease-in-out infinite;
}
.faq-deco i { color: var(--primary); }
.faq-deco-1 { top: 120px; left: 6%; animation-delay: 0s; }
.faq-deco-2 { top: 100px; right: 6%; animation-delay: 1s; }
.faq-deco-3 { bottom: 80px; left: 8%; animation-delay: 2s; }
.faq-deco-4 { bottom: 90px; right: 8%; animation-delay: 1.5s; }
@keyframes faqDecoFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

@media (max-width: 768px) {
    .faq-deco-1, .faq-deco-2, .faq-deco-3, .faq-deco-4 { display: none; }
}

.faq-hero-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.faq-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; margin-bottom: 24px;
    background: white; border: 1px solid var(--border); border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-xs);
}
.faq-hero h1 {
    font-size: clamp(32px, 5vw, 54px); font-weight: 900;
    line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 16px; color: var(--text-1);
}
.faq-hero-desc {
    font-size: 16px; color: var(--text-3); line-height: 1.8;
    max-width: 520px; margin: 0 auto 32px;
}

/* Search */
.faq-search-wrap { max-width: 480px; margin: 0 auto; position: relative; }
.faq-search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-4); font-size: 14px; pointer-events: none;
}
.faq-search {
    width: 100%; padding: 13px 18px 13px 44px;
    border: 1.5px solid var(--border); border-radius: var(--radius-lg);
    font-family: var(--font); font-size: 14.5px; color: var(--text-1);
    background: white; outline: none; transition: var(--trans); box-shadow: var(--shadow-sm);
}
.faq-search:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(37,99,235,0.10), var(--shadow-sm); }
.faq-search::placeholder { color: var(--text-4); }

/* Hero stats */
.faq-stats {
    display: flex; justify-content: center; gap: 32px; margin-top: 36px; flex-wrap: wrap;
}
.faq-stat { text-align: center; }
.faq-stat-num { font-size: 26px; font-weight: 800; color: var(--text-1); line-height: 1; }
.faq-stat-label { font-size: 12px; color: var(--text-4); margin-top: 4px; }

/* ── Jump Nav ─────────────────────────── */
.faq-jumpnav {
    background: white; border-bottom: 1px solid var(--border);
    position: sticky; top: 68px; z-index: 100; padding: 0 5%;
}
.faq-jumpnav-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; gap: 0; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
}
.faq-jumpnav-inner::-webkit-scrollbar { display: none; }
.faq-jumptab {
    display: flex; align-items: center; gap: 7px;
    padding: 13px 18px; white-space: nowrap;
    border: none; border-bottom: 2px solid transparent;
    background: transparent; cursor: pointer; font-family: var(--font);
    font-size: 13.5px; font-weight: 500; color: var(--text-3);
    transition: var(--trans); margin-bottom: -1px; text-decoration: none;
}
.faq-jumptab i { font-size: 12px; }
.faq-jumptab:hover { color: var(--text-1); }
.faq-jumptab.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }

/* ── Page Layout ──────────────────────── */
.faq-wrap {
    max-width: 800px; margin: 0 auto;
    padding: 0 5% 100px;
}

/* ── Main Q&A Content ─────────────────── */
.faq-main { padding-top: 48px; width: 100%; }

/* Category section */
.faq-section { margin-bottom: 72px; }
.faq-section:last-child { margin-bottom: 0; }

.faq-section-hd {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.faq-section-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    background: var(--primary-light); color: var(--primary);
}
.faq-section-icon.purple { background: var(--accent-light); color: var(--accent); }
.faq-section-icon.green  { background: rgba(16,185,129,0.1); color: var(--success); }
.faq-section-icon.orange { background: rgba(245,158,11,0.1); color: var(--warning); }
.faq-section-icon.red    { background: rgba(239,68,68,0.1);  color: var(--danger); }
.faq-section-info h2 {
    font-size: 19px; font-weight: 800; color: var(--text-1);
    letter-spacing: -0.3px; margin-bottom: 3px;
}
.faq-section-info p { font-size: 13px; color: var(--text-4); }

/* Q&A items — all visible */
.qa-list { display: flex; flex-direction: column; gap: 0; }

.qa-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr;
    transition: background 0.15s;
}
.qa-item:last-child { border-bottom: none; }

.qa-q {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 12px;
}
.qa-q-num {
    flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px;
    border-radius: 6px; background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; font-family: var(--font-mono);
}
.qa-q-text {
    font-size: 15.5px; font-weight: 800; color: var(--text-1); line-height: 1.4;
}

.qa-a {
    padding-left: 38px;
    font-size: 14.5px; color: var(--text-3); line-height: 1.85;
}
.qa-a p { margin-bottom: 10px; }
.qa-a p:last-child { margin-bottom: 0; }
.qa-a strong { color: var(--text-2); font-weight: 700; }
.qa-a a { color: var(--primary); font-weight: 600; }
.qa-a a:hover { text-decoration: underline; }
.qa-a code {
    font-family: var(--font-mono); font-size: 12.5px;
    background: var(--bg-3); border: 1px solid var(--border);
    padding: 2px 6px; border-radius: 5px; color: var(--primary);
}
.qa-a ul {
    list-style: none; margin: 10px 0; padding: 0;
    display: flex; flex-direction: column; gap: 7px;
}
.qa-a ul li { padding-left: 16px; position: relative; }
.qa-a ul li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
.qa-tip {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 14px; padding: 11px 14px;
    background: var(--primary-light); border-radius: var(--radius-md);
    font-size: 13px; color: var(--primary); line-height: 1.6;
}
.qa-tip i { margin-top: 2px; flex-shrink: 0; }
.qa-tip.tip-warn { background: rgba(245,158,11,0.1); color: var(--warning); }

/* Search: hide non-matching items */
.qa-item.hidden { display: none; }
.faq-section.all-hidden { display: none; }

/* Empty state */
.faq-empty {
    text-align: center; padding: 64px 20px; display: none;
    grid-column: 1 / -1;
}
.faq-empty i { font-size: 40px; display: block; margin-bottom: 14px; opacity: 0.35; color: var(--text-4); }
.faq-empty p { font-size: 15px; color: var(--text-4); }

/* ── Help Section ─────────────────────── */
.faq-help {
    background: var(--bg-2); border-top: 1px solid var(--border);
    padding: 72px 5%; text-align: center;
}
.faq-help h2 {
    font-size: clamp(22px, 3vw, 32px); font-weight: 800;
    letter-spacing: -0.5px; margin-bottom: 10px; color: var(--text-1);
}
.faq-help > p {
    font-size: 15px; color: var(--text-3);
    max-width: 420px; margin: 0 auto 32px; line-height: 1.7;
}
.faq-help-cards {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    max-width: 640px; margin: 0 auto;
}
.faq-help-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px 24px;
    flex: 1; min-width: 170px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-2);
    transition: var(--trans); box-shadow: var(--shadow-xs);
}
.faq-help-card:hover { border-color: var(--border-focus); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--primary); }
.faq-help-card i { font-size: 22px; color: var(--primary); }
.faq-help-card strong { font-size: 14px; font-weight: 700; }
.faq-help-card small { font-size: 12px; color: var(--text-4); }

/* ── Responsive ───────────────────────── */
@media (max-width: 768px) {
    .faq-hero { padding: 88px 5% 48px; }
    .faq-body { padding: 40px 5% 60px; }
    .faq-section { margin-bottom: 48px; }
    .faq-help-cards { flex-wrap: wrap; }
    .faq-help-card { flex: 1 1 calc(50% - 8px); }
}

@media (max-width: 560px) {
    .faq-hero { padding: 80px 5% 40px; }
    .faq-jumptab { padding: 11px 12px; font-size: 12.5px; }
    .qa-q-num { display: none; }
    .qa-a { padding-left: 0; }
    .faq-help-card { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .faq-hero { padding: 76px 5% 36px; }
}
