/* ===================================================================
   CSS DEDYKOWANY DLA STRONY FAQ (faq.php)
   Atlas Nieruchomości - Często zadawane pytania
   =================================================================== */

/* SEKCJA FAQ */
.faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.faq-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Kontener FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Elementy FAQ */
.faq-item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.faq-question.active {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #4285f4;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: white;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
}

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

.faq-answer-content {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

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

.faq-answer-content li {
    margin-bottom: 8px;
    color: #6c757d;
}

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

/* Kategorie FAQ */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-category-btn {
    padding: 10px 20px;
    border: 2px solid #4285f4;
    background: transparent;
    color: #4285f4;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.faq-category-btn:hover,
.faq-category-btn.active {
    background: #4285f4;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

/* Wyszukiwarka FAQ */
.faq-search {
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.faq-search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Brak wyników */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

.no-results i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 20px;
    display: block;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .faq-section .section-title {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 0 20px 20px 20px;
    }
    
    .faq-answer-content {
        font-size: 0.95rem;
        padding-top: 15px;
    }
    
    .faq-categories {
        gap: 10px;
    }
    
    .faq-category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .faq-search-input {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .faq-answer.active {
        padding: 0 15px 15px 15px;
    }
    
    .faq-answer-content {
        font-size: 0.9rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-category-btn {
        width: 200px;
        text-align: center;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
