/* static/css/components/faq.css */
/* FAQ-секция: аккордеон вопросов и ответов. Используется в platform_detail и article_detail. */

.faq-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.faq-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-item.active {
    border-color: #5B9BD5;
    box-shadow: 0 4px 16px rgba(91, 155, 213, 0.12);
}

.faq-question {
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question.active {
    color: #2c3e50;
}

.faq-question-text {
    flex: 1;
    padding-right: 15px;
}

.faq-question-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #5B9BD5;
    opacity: 0.7;
}

.faq-question:hover .faq-question-icon {
    opacity: 1;
}

.faq-question.active .faq-question-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-answer {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

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