/* FAQ Page CSS */

.faq-container {
    min-height: 100vh;
    background: var(--bg-body);
}

/* Header */
.faq-header {
    background: linear-gradient(135deg, var(--primary-color), #059669);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.faq-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.faq-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Search */
.faq-search {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.category-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* FAQ Content */
.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-section h2 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* FAQ Item - Modern Card Design */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), #10b981);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-question {
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-question::before {
    content: '?';
    background: linear-gradient(135deg, var(--primary-color), #10b981);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faq-answer {
    padding: 0 2rem 2rem 2rem;
    background: transparent;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    padding-left: 56px; /* Align with question text */
}

/* Contact CTA */
.faq-contact-cta {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.faq-contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(99, 102, 241, 0.1), 
        transparent, 
        rgba(16, 185, 129, 0.1), 
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.cta-content .btn {
    background: linear-gradient(135deg, var(--primary-color), #10b981);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cta-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-content .btn:hover::before {
    left: 100%;
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6, #059669);
}

/* Hidden/Visible States */
.faq-item.hidden {
    display: none;
}

.faq-section.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-header {
        padding: 3rem 0 1.5rem;
    }
    
    .faq-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .faq-header p {
        font-size: 1rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem;
    }
    
    .search-box {
        margin: 0 1rem;
    }
    
    .faq-question {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        gap: 0.75rem;
    }
    
    .faq-question::before {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .faq-answer p {
        padding-left: 50px;
        font-size: 0.95rem;
    }
    

    
    .faq-contact-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 0;
        border-radius: 16px;
    }
    
    .cta-content h3 {
        font-size: 1.4rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-content .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-header h1 {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .faq-question::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        align-self: flex-start;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-left: 0;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
    
    .faq-answer p {
        padding-left: 0;
        font-size: 0.9rem;
    }
    

    
    .faq-contact-cta {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .cta-content h3 {
        font-size: 1.2rem;
    }
    
    .cta-content .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Dark Mode */
[data-theme="dark"] .faq-header {
    background: linear-gradient(135deg, var(--primary-color), #065f46);
}

[data-theme="dark"] .faq-item:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-question::before {
    background: linear-gradient(135deg, var(--primary-color), #10b981);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .faq-contact-cta {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-contact-cta::before {
    background: linear-gradient(45deg, 
        transparent, 
        rgba(99, 102, 241, 0.15), 
        transparent, 
        rgba(16, 185, 129, 0.15), 
        transparent
    );
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-content {
    animation: fadeInUp 0.6s ease-out;
}

.faq-item {
    animation: fadeInUp 0.4s ease-out;
}

.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; }

/* Search Highlight */
.highlight {
    background: rgba(255, 235, 59, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Loading State */
.faq-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.faq-loading i {
    animation: spin 1s linear infinite;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} 