﻿/* ===================================================
   faq.css — صفحه پرسش‌های متداول فیلمینجو
   =================================================== */

/* ── صفحه اصلی ──────────────────────────────────── */
.faq-page {
    min-height: 100vh;
    background: #222222;
    color: #e5e7eb;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

/* ── hero ───────────────────────────────────────── */
.faq-hero {
    padding-top: 96px;
    padding-bottom: 48px;
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 140, 255, 0.1);
    border: 1px solid rgba(0, 140, 255, 0.25);
    color: #008CFF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.faq-hero-badge-icon {
    width: 14px;
    height: 14px;
}

.faq-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f9fafb;
    line-height: 1.4;
    margin-bottom: 12px;
}

.faq-hero-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.7;
}

/* ── محتوا ──────────────────────────────────────── */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── دسته‌بندی‌ها ──────────────────────────────── */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.faq-cat-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #9ca3af;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.faq-cat-btn:hover {
    border-color: #008CFF;
    color: #008CFF;
}

.faq-cat-btn.active {
    background: rgba(0, 140, 255, 0.15);
    border-color: #008CFF;
    color: #008CFF;
    font-weight: 600;
}

/* ── لیست سوالات ────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 48px;
}

/* ── هر آیتم FAQ ────────────────────────────────── */
.faq-item {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: rgba(0, 140, 255, 0.4);
}

/* دکمه سوال */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f3f4f6;
    text-align: right;
    direction: rtl;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #008CFF;
}

.faq-item.open .faq-question {
    color: #008CFF;
}

.faq-question-text {
    flex: 1;
    line-height: 1.6;
}

/* آیکون پلاس/منوس */
.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 140, 255, 0.1);
    border: 1px solid rgba(0, 140, 255, 0.2);
    color: #008CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.3s;
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    background: rgba(0, 140, 255, 0.2);
    transform: rotate(45deg);
}

/* پاسخ — انیمیشن باز/بسته شدن */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    line-height: 2;
    color: #d1d5db;
    border-top: 1px solid #3a3a3a;
    padding-top: 16px;
}

/* ── وضعیت خالی ─────────────────────────────────── */
.faq-empty {
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
}

.faq-empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #3a3a3a;
    display: block;
}

/* ── کادر تماس ──────────────────────────────────── */
.faq-contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
}

.faq-contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 140, 255, 0.1);
    border: 1px solid rgba(0, 140, 255, 0.25);
    color: #008CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.faq-contact-icon svg {
    width: 24px;
    height: 24px;
}

.faq-contact-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 10px;
}

.faq-contact-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.7;
}

.faq-contact-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.faq-contact-btn:active { transform: scale(0.97); }

.faq-contact-btn svg {
    width: 16px;
    height: 16px;
}

.faq-contact-btn--primary {
    background: #008CFF;
    color: #fff;
}
.faq-contact-btn--primary:hover { background: #0070CC; }

.faq-contact-btn--secondary {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #3a3a3a;
}
.faq-contact-btn--secondary:hover { border-color: #008CFF; color: #008CFF; }

/* ── ریسپانسیو ──────────────────────────────────── */
@media (max-width: 640px) {
    .faq-hero {
        padding-top: 80px;
        padding-bottom: 32px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .faq-hero-title { font-size: 1.5rem; }
    .faq-hero-subtitle { font-size: 0.875rem; }

    .faq-content { padding: 0 16px 64px; }

    .faq-question { padding: 15px 16px; font-size: 0.9rem; }
    .faq-answer-inner { padding: 0 16px 16px; padding-top: 14px; }

    .faq-contact { padding: 28px 20px; }
    .faq-contact-btns { flex-direction: column; align-items: stretch; }
    .faq-contact-btn { justify-content: center; }
}

@media (max-width: 400px) {
    .faq-categories { gap: 6px; }
    .faq-cat-btn { padding: 6px 12px; font-size: 0.8rem; }
}
