/**
 * ============================================================================
 * V2 FAQ — Часто задаваемые вопросы
 * ============================================================================
 * 
 * @file        web/css/v2/faq.css
 * @description Стили для FAQ-секций и виджетов
 * @version     1.0 (Декабрь 2025)
 * 
 * ============================================================================
 * СОДЕРЖИМОЕ:
 * ────────────────────────────────────────
 * 
 * 1. Обычный FAQ (.v2-faq, .v2-faq-item)
 * 2. Магический FAQ (.v2-faq-snow-item) — для rules-magic
 * 
 * ============================================================================
 * ИСПОЛЬЗОВАНИЕ:
 * 
 * Обычный FAQ:
 * <div class="v2-faq">
 *     <div class="v2-faq-item">
 *         <button class="v2-faq-question" aria-expanded="false">
 *             <span class="v2-faq-question-text">Вопрос?</span>
 *             <span class="v2-faq-toggle">+</span>
 *         </button>
 *         <div class="v2-faq-answer">
 *             <div class="v2-faq-answer-content">Ответ...</div>
 *         </div>
 *     </div>
 * </div>
 * 
 * Магический FAQ (rules-magic):
 * <div class="v2-faq-snow-item">
 *     <div class="v2-faq-question-magic">
 *         <span class="v2-faq-q-icon">❄️</span>
 *         <span class="v2-faq-q-text">Вопрос?</span>
 *         <span class="v2-faq-toggle-magic">+</span>
 *     </div>
 *     <div class="v2-faq-answer-magic"><p>Ответ...</p></div>
 * </div>
 * 
 * ============================================================================
 */

/* ==========================================================================
   1. ОБЫЧНЫЙ FAQ
   ========================================================================== */

.v2-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-faq-item {
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.v2-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.v2-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--v2-text);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
}

.v2-faq-question:hover {
    background: var(--v2-bg-elevated);
}

.v2-faq-question[aria-expanded="true"] {
    background: var(--v2-bg-elevated);
}

.v2-faq-question-text {
    flex: 1;
    padding-right: 16px;
}

.v2-faq-toggle {
    font-size: 24px;
    color: var(--v2-gold);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.v2-faq-question[aria-expanded="true"] .v2-faq-toggle {
    transform: rotate(45deg);
}

.v2-faq-answer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.v2-faq-question[aria-expanded="true"] + .v2-faq-answer {
    max-height: 500px;
}

.v2-faq-answer-content {
    padding: 18px 20px;
    font-size: 14px;
    color: var(--v2-text-muted);
    line-height: 1.7;
}

.v2-faq-answer-content a {
    color: var(--v2-gold);
    text-decoration: underline;
}

.v2-faq-answer-content a:hover {
    color: var(--v2-gold-light);
}

.v2-faq-answer-content p {
    margin: 0 0 12px;
}

.v2-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.v2-faq-answer-content ul {
    padding-left: 20px;
    margin: 0;
}

.v2-faq-answer-content ul li {
    margin-bottom: 6px;
}

/* ==========================================================================
   2. МАГИЧЕСКИЙ FAQ (для rules-magic)
   ========================================================================== */

.v2-faq-snow-item {
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.v2-faq-snow-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.v2-faq-question-magic {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.v2-faq-question-magic:hover {
    background: var(--v2-bg-elevated);
}

.v2-faq-q-icon {
    font-size: 20px;
    opacity: 0.7;
}

.v2-faq-q-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--v2-text);
}

.v2-faq-toggle-magic {
    font-size: 28px;
    color: var(--v2-gold);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.v2-faq-open .v2-faq-toggle-magic {
    transform: rotate(45deg);
}

.v2-faq-answer-magic {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.v2-faq-open .v2-faq-answer-magic {
    max-height: 300px;
}

.v2-faq-answer-magic p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--v2-text-muted);
    line-height: 1.7;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.v2-faq-answer-magic a {
    color: var(--v2-gold);
}

/* ==========================================================================
   3. FAQ PAGE LAYOUT
   ========================================================================== */

.v2-faq-page {
    padding: 20px 0;
}

.v2-faq-hero {
    text-align: center;
    padding: 48px;
    /*background: var(--v2-bg-card);*/
    /*border-radius: var(--v2-radius-xl);*/
    margin-bottom: 32px;
    /*border: 1px solid rgba(255, 255, 255, 0.05);*/
}

.v2-faq-hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.v2-faq-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 12px;
}

.v2-faq-hero-subtitle {
    font-size: 16px;
    color: var(--v2-text-muted);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.v2-faq-section {
    margin-bottom: 32px;
}

.v2-faq-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 20px;
}

.v2-faq-section-icon {
    font-size: 24px;
}

/* ==========================================================================
   4. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .v2-faq-hero {
        padding: 32px 20px;
    }
    
    .v2-faq-hero-title {
        font-size: 24px;
    }
    
    .v2-faq-question {
        padding: 16px;
        font-size: 14px;
    }
    
    .v2-faq-answer-content {
        padding: 16px;
    }
}

/* ==========================================================================
   5. LIGHT THEME
   ========================================================================== */

.v2-theme-light .v2-faq-item,
.v2-theme-light .v2-faq-snow-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-faq-item:hover,
.v2-theme-light .v2-faq-snow-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.v2-theme-light .v2-faq-question:hover,
.v2-theme-light .v2-faq-question[aria-expanded="true"],
.v2-theme-light .v2-faq-question-magic:hover {
    background: #f8fafc;
}

.v2-theme-light .v2-faq-answer {
    border-color: rgba(0, 0, 0, 0.06);
}

