/* static/css/core/faq.css */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Wrapper */
.faq-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* Floating Shapes - Same as contact.css */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--success-gradient);
    bottom: -100px;
    left: -100px;
    animation-delay: 8s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    top: 50%;
    left: 50%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* Page Header */
.page-header {
    position: relative;
    z-index: 1;
}

.header-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--primary-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Box */
.search-box {
    position: relative;
    z-index: 1;
}

.search-box .input-icon {
    position: relative;
}

.search-box .input-icon i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
    z-index: 2;
}

.search-box .form-control {
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.search-box .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Category Filter */
.category-filter {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: white;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* FAQ Accordion */
.faq-accordion {
    position: relative;
    z-index: 1;
}

.faq-item {
    margin-bottom: 1rem;
    transition: var(--transition);
}

.faq-item.hidden {
    display: none;
}

.accordion-item {
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    background: transparent;
    border: none;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
    flex-shrink: 0;
}

.accordion-button i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.accordion-body {
    padding: 1.5rem 2rem 2rem;
    color: #4b5563;
    line-height: 1.7;
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

.accordion-body strong {
    color: #1f2937;
    font-weight: 600;
}

/* Contact CTA */
.contact-cta {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.contact-cta .btn-primary {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-block;
}

.contact-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* Glass Effect */
.glass-effect {
    animation: glassAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glassAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .category-filter {
        padding: 0.75rem;
    }
    
    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 767.98px) {
    .accordion-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .contact-cta {
        padding: 2rem 1.5rem;
    }
    
    .header-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}