/**
 * FAQ List Styles
 * Accordion design with category grouping
 */

.faq-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Category Section */
.faq-category-section {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Category Header */
.faq-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.faq-category-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.faq-category-title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.faq-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 10px;
    background: #fbbf24;
    color: #1a1f2e;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
}

/* FAQ Items Container */
.faq-items {
    background: #1e293b;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual FAQ Item */
.faq-item {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.faq-question:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.faq-question.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.faq-question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #10b981;
}

.faq-question-icon svg {
    width: 16px;
    height: 16px;
}

.faq-question-text {
    flex: 1;
}

.faq-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: #10b981;
}

.faq-toggle-icon svg {
    width: 20px;
    height: 20px;
}

/* FAQ Answer */
.faq-answer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer-content {
    padding: 20px 18px 20px 50px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0 0 12px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 8px;
}

.faq-answer-content strong {
    color: #e2e8f0;
    font-weight: 600;
}

.faq-answer-content a {
    color: #10b981;
    text-decoration: underline;
}

.faq-answer-content a:hover {
    color: #34d399;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-list-container {
        padding: 15px;
        gap: 25px;
    }

    .faq-category-header {
        padding: 18px 20px;
    }

    .faq-category-icon {
        width: 36px;
        height: 36px;
    }

    .faq-category-icon svg {
        width: 22px;
        height: 22px;
    }

    .faq-category-title {
        font-size: 18px;
    }

    .faq-items {
        padding: 12px;
    }

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

    .faq-answer-content {
        padding: 18px 16px 18px 44px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faq-list-container {
        padding: 12px;
        gap: 20px;
    }

    .faq-category-section {
        border-radius: 16px;
    }

    .faq-category-header {
        padding: 16px 18px;
        gap: 12px;
    }

    .faq-category-icon {
        width: 32px;
        height: 32px;
    }

    .faq-category-icon svg {
        width: 20px;
        height: 20px;
    }

    .faq-category-title {
        font-size: 16px;
    }

    .faq-count-badge {
        min-width: 28px;
        height: 22px;
        font-size: 11px;
    }

    .faq-items {
        padding: 10px;
        gap: 8px;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-question {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
    }

    .faq-question-icon {
        width: 18px;
        height: 18px;
    }

    .faq-question-icon svg {
        width: 14px;
        height: 14px;
    }

    .faq-toggle-icon {
        width: 18px;
        height: 18px;
    }

    .faq-toggle-icon svg {
        width: 18px;
        height: 18px;
    }

    .faq-answer-content {
        padding: 16px 14px 16px 38px;
        font-size: 12px;
    }
}
