/**
 * FAQ Styles - Urkundenarchiv Siegen
 * Modern list layout with search and filter functionality
 */

/* FAQ Section uses standard section-title from main.css */

/* Add spacing from header (Archive page only) */
.faq.section {
    padding-top: 150px;
}

/* ===================================
   FAQ Preview Section (Homepage)
   =================================== */

.faq-preview.section {
    background-color: #f8f9fa;
}

.faq-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.faq-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.faq-card-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-card-title i {
    color: #0d6efd;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.faq-card-content {
    color: #6c757d;
    line-height: 1.7;
    flex-grow: 1;
}

.faq-card-content p {
    margin-bottom: 10px;
}

.faq-card-content ul,
.faq-card-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.faq-card-content li {
    margin-bottom: 5px;
}

.faq-card-content strong {
    color: #212529;
    font-weight: 600;
}

/* ===================================
   FAQ Archive Page
   =================================== */

/* Search Box */
.faq-search-box {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search-box input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-search-box input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Category Navigation */
.faq-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cat-btn {
    padding: 10px 40px 10px 20px;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block !important;
    text-align: center !important;
    position: relative;
}

.faq-cat-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.faq-cat-btn.active {
    background-color: #212529;
    color: #fff;
    border-color: #212529;
}

.faq-cat-btn .badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.faq-cat-btn.active .badge {
    background-color: rgba(255, 255, 255, 0.3);
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* Category Group */
.faq-category-group {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Items */
.faq-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #adb5bd;
}

/* FAQ Question */
.faq-question {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.faq-question i.bi-question-circle {
    font-size: 1.3rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.faq-question .toggle-icon {
    margin-left: auto;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #6c757d;
}

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

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}

.faq-answer.active {
    max-height: 3000px;
    padding: 0 25px 25px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #495057;
}

.faq-answer ul,
.faq-answer ol {
    margin-bottom: 15px;
    margin-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.7;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-category-nav {
        flex-direction: column;
    }

    .faq-cat-btn {
        width: 100%;
        justify-content: center;
    }

    .faq-category-title {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .faq-search-box,
    .faq-category-nav,
    .toggle-icon {
        display: none !important;
    }

    .faq-answer {
        max-height: none !important;
        display: block !important;
    }

    .faq-item {
        page-break-inside: avoid;
    }
}
