/* FAQ Page — Styles */

/* ===============================================
   FAQ Hero Section
   =============================================== */
.faq-hero {
    padding: 64px 0 56px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 60%, #f0f4ff 100%);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.faq-hero-content {
    max-width: 580px;
}

.faq-hero-content h1 {
    font-size: 2.8rem;
    margin: 0 0 16px;
    line-height: 1.1;
    text-wrap: balance;
    font-weight: 700;
}

.faq-hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.faq-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Stats */
.faq-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    flex-shrink: 0;
}

.faq-stat {
    background: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.faq-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.faq-stat-plus {
    font-size: 1.3rem;
    font-weight: 700;
}

.faq-stat span:last-child {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===============================================
   Eyebrow Tag (shared style)
   =============================================== */
.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(32, 33, 36, 0.07);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* ===============================================
   Category Tab Bar
   =============================================== */
.faq-tabs-wrap {
    position: sticky;
    top: 72px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}

.faq-tabs {
    display: flex;
    gap: 4px;
    padding: 6px 0;
    height: 52px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.faq-tabs::-webkit-scrollbar { display: none; }

.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius-btn);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid transparent;
}

.faq-tab:hover {
    color: var(--color-text-main);
    background: var(--color-bg-alt);
}

.faq-tab.active {
    background: var(--color-text-main);
    color: #fff;
}

/* ===============================================
   FAQ Category Section
   =============================================== */
.faq-category-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.faq-category-section-alt {
    background: var(--color-bg-alt);
}

/* Category Header */
.faq-category-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 48px;
}

.faq-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--color-text-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.faq-category-icon-blue   { background: var(--color-brand-blue); }
.faq-category-icon-green  { background: #10b981; }
.faq-category-icon-purple { background: #8b5cf6; }
.faq-category-icon-orange { background: #f59e0b; }
.faq-category-icon-dark   { background: #1d1d1f; }

.faq-category-header h2 { font-size: 1.8rem; margin-bottom: 8px; }
.faq-category-header p  { font-size: 0.95rem; margin: 0; }

/* ===============================================
   FAQ List & Items
   (extends main.css .faq-* base styles)
   =============================================== */
.faq-category-section .faq-list {
    max-width: 900px;
}

.faq-answer-inner {
    line-height: 1.8;
}

.faq-answer-inner strong {
    color: var(--color-text-main);
}

/* ===============================================
   Platform Grid (inside FAQ answer)
   =============================================== */
.faq-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.faq-platform-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
}

.faq-platform-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-text-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-platform-android { background: #3ddc84; }
.faq-platform-ios     { background: #1d1d1f; }

.faq-platform-item strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.faq-platform-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ===============================================
   Tip / Warning Boxes
   =============================================== */
.faq-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(14,165,233,0.07);
    border: 1px solid rgba(14,165,233,0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.faq-tip > i {
    color: var(--color-brand-blue);
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.faq-tip-yellow {
    background: rgba(245,158,11,0.07);
    border-color: rgba(245,158,11,0.25);
}

.faq-tip-yellow > i { color: #d97706; }

/* ===============================================
   Code Block (inside FAQ answer)
   =============================================== */
.faq-code-block {
    position: relative;
    background: #1e1e2e;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 14px 0;
    overflow: hidden;
}

.faq-code-lang {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.faq-code-block pre {
    margin: 0;
    overflow-x: auto;
}

.faq-code-block code {
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.88rem;
    color: #cdd6f4;
    line-height: 1.75;
    white-space: pre;
}

/* ===============================================
   Steps List & Ordered List (inside FAQ answer)
   =============================================== */
.faq-steps-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-steps-list li {
    padding-left: 16px;
    border-left: 2px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-steps-list li strong { color: var(--color-text-main); }

.faq-ordered-list {
    padding-left: 20px;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-ordered-list li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-ordered-list li strong { color: var(--color-text-main); }

/* ===============================================
   Proxy Mode Cards (inside FAQ answer)
   =============================================== */
.faq-mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.faq-mode-card {
    background: var(--color-bg-alt);
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
}

.faq-mode-recommended {
    border-color: var(--color-text-main);
    background: #fff;
}

.faq-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--color-text-main);
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.faq-mode-card strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.faq-mode-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.65;
}

/* ===============================================
   Comparison Table (inside FAQ answer)
   =============================================== */
.faq-compare-table {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
}

.faq-compare-header,
.faq-compare-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    border-bottom: 1px solid var(--color-border);
}

.faq-compare-row:last-child { border-bottom: none; }

.faq-compare-header > span {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.82rem;
    background: var(--color-bg-alt);
    color: var(--color-text-main);
}

.faq-compare-row > span {
    padding: 12px 16px;
    color: var(--color-text-muted);
    border-right: 1px solid var(--color-border);
    line-height: 1.5;
}

.faq-compare-row > span:last-child { border-right: none; }
.faq-compare-row > span:first-child { font-weight: 600; color: var(--color-text-main); }

/* ===============================================
   Inline Link (inside FAQ answer)
   =============================================== */
.faq-inline-link {
    color: var(--color-brand-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.faq-inline-link:hover { opacity: 0.75; }

/* ===============================================
   Still Need Help Section
   =============================================== */
.faq-help-section {
    padding: 64px 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.faq-help-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 48px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4ff 100%);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.faq-help-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-help-badge {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--color-text-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.faq-help-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.faq-help-desc {
    font-size: 0.97rem;
    color: var(--color-text-muted);
    max-width: 520px;
    line-height: 1.75;
    margin: 0 auto 36px;
}

.faq-help-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 720px;
}

.faq-help-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.faq-help-btn:hover {
    border-color: var(--color-text-main);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.faq-help-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-text-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-help-btn-icon-green { background: #3ddc84; color: #1a1a1a; }
.faq-help-btn-icon-blue  { background: var(--color-brand-blue); }

.faq-help-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    text-align: left;
}

.faq-help-btn-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.faq-help-btn-text small {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.faq-help-btn-arrow {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.faq-help-btn:hover .faq-help-btn-arrow {
    opacity: 1;
}

/* ===============================================
   CTA Section
   =============================================== */
.faq-cta-section {
    padding: 80px 0;
    background: var(--color-text-main);
}

.faq-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.faq-cta-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.faq-cta-content p {
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0;
}

.faq-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.faq-cta-section .btn-primary {
    background: #fff;
    color: var(--color-text-main);
}

.faq-cta-section .btn-primary:hover {
    background: #e8e8e8;
}

.faq-cta-section .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    background: transparent;
}

.faq-cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ===============================================
   Button Sizes
   =============================================== */
.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ===============================================
   Responsive
   =============================================== */
@media (max-width: 1024px) {
    .faq-mode-cards {
        grid-template-columns: 1fr;
    }

    .faq-platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .faq-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-hero-stats {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
    }

    .faq-compare-table {
        font-size: 0.82rem;
    }

    .faq-compare-header,
    .faq-compare-row {
        grid-template-columns: 0.8fr 1.2fr 1.2fr;
    }

    .faq-help-inner {
        padding: 40px 32px;
    }

    .faq-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-cta-content p { max-width: none; }
}

@media (max-width: 768px) {
    .faq-hero { padding: 40px 0 36px; }
    .faq-hero-content h1 { font-size: 2.2rem; }

    .faq-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-stat-num {
        font-size: 1.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .faq-hero-actions {
        flex-direction: column;
    }

    .faq-hero-actions .btn { width: 100%; justify-content: center; }

    .faq-category-section { padding: 48px 0; }

    .faq-category-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .faq-category-header h2 { font-size: 1.5rem; }

    .faq-help-inner {
        padding: 36px 24px;
    }

    .faq-help-title { font-size: 1.5rem; }

    .faq-help-btn {
        max-width: 100%;
    }

    .faq-help-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-cta-section { padding: 48px 0; }
    .faq-cta-content h2 { font-size: 1.6rem; }
    .faq-cta-actions { flex-direction: column; width: 100%; }
    .faq-cta-actions .btn { width: 100%; justify-content: center; }

    .faq-mode-cards { grid-template-columns: 1fr; }
    .faq-platform-grid { grid-template-columns: 1fr; }

    .faq-compare-header,
    .faq-compare-row {
        grid-template-columns: 1fr;
    }

    .faq-compare-header > span:first-child,
    .faq-compare-row > span:first-child {
        background: var(--color-bg-alt);
        font-weight: 700;
        font-size: 0.8rem;
    }

    .faq-compare-row > span { border-right: none; }
}

@media (max-width: 480px) {
    .faq-tab span { display: none; }
    .faq-tab i { font-size: 1.05rem; }
    .faq-tab { padding: 8px 14px; }

    .faq-hero-content h1 { font-size: 1.85rem; }
    .faq-hero-stats { grid-template-columns: repeat(2, 1fr); }
    .faq-stat-num { font-size: 1.2rem; }
    .faq-stat { padding: 14px 16px; }

    .faq-code-block code { font-size: 0.8rem; }
}
