/**
 * ZORIN Fundry - Стили для секции FAQ
 * Часто задаваемые вопросы о маркетплейсе
 */

.faq {
    background-color: var(--light-bg-alt);
    position: relative;
}

.dark-mode .faq,
html.dark-mode .faq {
    background-color: var(--dark-bg-alt);
}

.faq-blur {
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
}

/* Список вопросов */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* Отдельный элемент FAQ */
.faq-item {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dark-mode .faq-item,
html.dark-mode .faq-item {
    background-color: var(--dark-bg);
    box-shadow: var(--shadow-dark);
    border-color: rgba(255, 255, 255, 0.03);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .faq-item:hover,
html.dark-mode .faq-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .faq-item.active,
html.dark-mode .faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Вопрос */
.faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question h3 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--light-text);
    padding-right: 20px;
    transition: var(--transition);
}

.dark-mode .faq-question h3,
html.dark-mode .faq-question h3 {
    color: var(--dark-text);
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-question svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

/* Ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: all 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--light-text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.dark-mode .faq-answer p,
html.dark-mode .faq-answer p {
    color: var(--dark-text-secondary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }

    .faq-question {
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 15px 18px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 15px;
    }
}
