/* ═══════ FAQ PAGE ═══════ */

.faq-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.faq-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.faq-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.faq-container {
    max-width: 900px;
    margin-bottom: 60px;
}

/* ── Category Tabs ── */
.faq-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}
.faq-tab:hover {
    background: #e5e7eb;
    color: #374151;
}
.faq-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}
.faq-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ── FAQ List ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-item.open .faq-question {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}
.faq-q-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}
.faq-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}
.faq-q-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.faq-toggle {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

/* ── Answer ── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-a-text {
    padding: 20px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}
.faq-a-text a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}
.faq-a-text a:hover {
    text-decoration: underline;
}

/* ── Empty State ── */
.faq-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.faq-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ── CTA ── */
.faq-cta {
    margin-top: 60px;
}
.faq-cta-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}
.faq-cta-card i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 15px;
}
.faq-cta-card h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #1f2937;
}
.faq-cta-card p {
    margin: 0 0 20px 0;
    color: #6b7280;
}

/* ── Dark Mode ── */
[data-theme="dark"] .faq-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
[data-theme="dark"] .faq-tab {
    background: #27272a;
    color: #a1a1aa;
}
[data-theme="dark"] .faq-tab:hover {
    background: #3f3f46;
    color: #fafafa;
}
[data-theme="dark"] .faq-tab.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}
[data-theme="dark"] .faq-item {
    border-color: #404040;
    background: #1f2937;
}
[data-theme="dark"] .faq-item:hover {
    border-color: #555;
    background: #27272a;
}
[data-theme="dark"] .faq-item.open .faq-question {
    background: #2d2d3d;
    border-color: #404040;
}
[data-theme="dark"] .faq-q-text {
    color: #f3f4f6;
}
[data-theme="dark"] .faq-toggle {
    color: #6b7280;
}
[data-theme="dark"] .faq-a-text {
    color: #d1d5db;
}
[data-theme="dark"] .faq-empty {
    color: #6b7280;
}
[data-theme="dark"] .faq-cta-card {
    background: linear-gradient(135deg, #27272a 0%, #2d2d3d 100%);
    border-color: #404040;
}
[data-theme="dark"] .faq-cta-card h3 {
    color: #f3f4f6;
}
[data-theme="dark"] .faq-cta-card p {
    color: #9ca3af;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .faq-header h1 { font-size: 1.8rem; }
    .faq-question { padding: 15px; }
    .faq-a-text { padding: 15px; }
    .faq-cta-card { padding: 30px 20px; }
}
