/* ===================================
   FAQ Page - Du First (Purple Edition)
   Modern & Clean Design
   =================================== */

:root {
    --faq-purple: #7f52ff;
    --faq-purple-light: #a78bfa;
    --faq-purple-glow: #c084fc;
    --faq-dark-bg: #0a0e27;
    --faq-card-bg: rgba(255, 255, 255, 0.03);
    --faq-border: rgba(255, 255, 255, 0.08);
    --faq-text: #ffffff;
    --faq-text-muted: rgba(255, 255, 255, 0.7);
    --faq-radius: 16px;
    --faq-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* پس‌زمینه اصلی */
.page-faq {
    background: radial-gradient(ellipse at top, #16213e 0%, #0a0e27 50%, #000000 100%);
    min-height: 100vh;
    position: relative;
}

/* شکل‌های متحرک پس‌زمینه */
.faq-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.faq-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    will-change: transform;
}

.faq-shape--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--faq-purple) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: pulse 15s ease-in-out infinite;
}

.faq-shape--2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--faq-purple-light) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: pulse 18s ease-in-out infinite 5s;
}

.faq-shape--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--faq-purple-glow) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 20s ease-in-out infinite 10s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) translate(0, 0);
        opacity: 0.25;
    }
    50% { 
        transform: scale(1.15) translate(20px, -20px);
        opacity: 0.35;
    }
}

/* Container */
.faq {
    position: relative;
    z-index: 1;
    padding: 140px 0 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 70px;
}

.faq-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(127, 82, 255, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(127, 82, 255, 0.4);
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(127, 82, 255, 0.15);
}

.badge-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(127, 82, 255, 0.6));
}

.badge-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--faq-purple-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-header__title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--faq-purple-light) 40%, var(--faq-purple-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(127, 82, 255, 0.3));
}

.faq-header__subtitle {
    font-size: clamp(17px, 2.5vw, 22px);
    line-height: 1.6;
    color: var(--faq-text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
}

/* Search Box */
.faq-search {
    max-width: 650px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 70px 20px 28px;
    font-size: 17px;
    color: var(--faq-text);
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--faq-border);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s var(--faq-smooth);
    backdrop-filter: blur(12px);
}

.search-input:focus {
    border-color: var(--faq-purple);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 5px rgba(127, 82, 255, 0.12), 0 8px 30px rgba(127, 82, 255, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--faq-purple) 0%, var(--faq-purple-light) 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s var(--faq-smooth);
    box-shadow: 0 4px 16px rgba(127, 82, 255, 0.4);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(127, 82, 255, 0.6);
}

/* Content Area */
.faq-content {
    max-width: 950px;
    margin: 0 auto;
}

/* Filters */
.faq-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 50px;
    padding: 24px;
    background: var(--faq-card-bg);
    border-radius: var(--faq-radius);
    backdrop-filter: blur(12px);
    border: 1px solid var(--faq-border);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--faq-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--faq-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s var(--faq-smooth);
}

.filter-btn:hover {
    color: var(--faq-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--faq-purple) 0%, var(--faq-purple-light) 100%);
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(127, 82, 255, 0.45);
}

.filter-icon {
    font-size: 20px;
}

/* FAQ Grid */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* FAQ Item */
.faq-item {
    background: var(--faq-card-bg);
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-radius);
    overflow: hidden;
    transition: all 0.3s var(--faq-smooth);
    backdrop-filter: blur(12px);
}

.faq-item:hover {
    border-color: rgba(127, 82, 255, 0.35);
    transform: translateX(6px);
    box-shadow: 0 8px 32px rgba(127, 82, 255, 0.15);
}

/* Question */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    font-size: 18px;
    font-weight: 600;
    color: var(--faq-text);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--faq-smooth);
}

.faq-question:hover {
    color: var(--faq-purple-light);
}

.faq-question.is-open {
    color: var(--faq-purple);
    background: rgba(127, 82, 255, 0.06);
}

.question-icon {
    flex-shrink: 0;
    font-size: 26px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(127, 82, 255, 0.15) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-radius: 14px;
    transition: all 0.3s var(--faq-smooth);
}

.faq-question.is-open .question-icon {
    background: linear-gradient(135deg, var(--faq-purple) 0%, var(--faq-purple-light) 100%);
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 4px 20px rgba(127, 82, 255, 0.5);
}

.question-text {
    flex: 1;
}

.question-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: all 0.3s var(--faq-smooth);
}

.faq-question.is-open .question-toggle {
    transform: rotate(135deg);
    background: var(--faq-purple);
    color: #fff;
    box-shadow: 0 0 16px rgba(127, 82, 255, 0.6);
}

/* Answer */
.faq-answer {
    padding: 0 26px 28px 98px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--faq-text-muted);
    animation: slideDown 0.35s ease-out;
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--faq-purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.faq-answer a:hover {
    color: var(--faq-purple-glow);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Card */
.faq-contact {
    margin-top: 70px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    padding: 38px;
    background: linear-gradient(135deg, rgba(127, 82, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(127, 82, 255, 0.2);
    border-radius: var(--faq-radius);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 48px rgba(127, 82, 255, 0.12);
}

.contact-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--faq-text);
    margin-bottom: 14px;
}

.contact-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--faq-text-muted);
    margin-bottom: 28px;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--faq-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.25s var(--faq-smooth);
}

.form-input:focus {
    border-color: var(--faq-purple);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(127, 82, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Submit Button */
.btn--submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--faq-purple) 0%, var(--faq-purple-light) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--faq-smooth);
    box-shadow: 0 6px 24px rgba(127, 82, 255, 0.4);
}

.btn--submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(127, 82, 255, 0.5);
}

.btn__icon {
    font-size: 22px;
    transition: transform 0.3s var(--faq-smooth);
}

.btn--submit:hover .btn__icon {
    transform: translateX(6px);
}

/* Ticker */
.ticker {
    background: linear-gradient(135deg, var(--faq-purple) 0%, var(--faq-purple-light) 100%);
    padding: 24px 0;
    overflow: hidden;
    margin-top: 90px;
}

.ticker-wrapper {
    display: flex;
    gap: 70px;
    animation: scroll 35s linear infinite;
}

.ticker-item {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Button */
.scrollTrigger {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--faq-purple) 0%, var(--faq-purple-light) 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--faq-smooth);
    z-index: 999;
    box-shadow: 0 6px 24px rgba(127, 82, 255, 0.45);
}

.scrollTrigger.visible {
    opacity: 1;
    visibility: visible;
}

.scrollTrigger:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 36px rgba(127, 82, 255, 0.65);
}

/* Responsive */
@media (max-width: 768px) {
    .faq { padding: 100px 0 70px; }
    .faq-header { margin-bottom: 50px; }
    .faq-filters { padding: 20px; }
    .filter-btn { padding: 12px 20px; font-size: 14px; }
    .faq-question { padding: 22px; font-size: 17px; }
    .question-icon { width: 46px; height: 46px; font-size: 22px; }
    .faq-answer { padding: 0 22px 24px 84px; font-size: 15px; }
    .contact-card { padding: 28px; }
}

@media (max-width: 480px) {
    .faq-header__title { font-size: 36px; }
    .filter-btn { padding: 10px 18px; font-size: 13px; }
    .faq-question { padding: 18px; font-size: 16px; gap: 14px; }
    .question-icon { width: 40px; height: 40px; font-size: 20px; }
    .faq-answer { padding: 0 18px 20px 72px; font-size: 14px; }
    .scrollTrigger { width: 50px; height: 50px; bottom: 24px; right: 24px; }
}
