/* FAQ Page Styles */

.faq-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 20%);
}

/* Hero Section */
.faq-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #2EA3F2 100%);
    color: white;
    text-align: center;
}

.faq-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease;
    color: white;
}

.faq-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.1s both;
    color: rgba(255, 255, 255, 0.95);
}

/* Search Bar */
.faq-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* Category Tabs */
.faq-categories {
    padding: 40px 0 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.category-tab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background: #e5e7eb;
}

.category-tab.active {
    background: #2EA3F2;
    color: white;
}

/* FAQ Content */
.faq-content {
    padding: 40px 0 80px;
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ List */
.faq-list {
    margin-bottom: 60px;
}

.faq-category-section {
    margin-bottom: 48px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2EA3F2;
}

/* FAQ Items */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: #2EA3F2;
    box-shadow: 0 4px 16px rgba(46, 163, 242, 0.15);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-item.active .faq-question {
    color: #2EA3F2;
}

.chevron-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .chevron-icon {
    transform: rotate(180deg);
}

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

.faq-answer.active {
    max-height: 1000px;
}

.answer-content {
    padding: 0 24px 24px;
    color: #4b5563;
    line-height: 1.6;
}

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

/* FAQ Tags */
.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    border-radius: 12px;
}

/* Helpful Section */
.helpful-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.helpful-btn {
    padding: 6px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #2EA3F2;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.no-results svg {
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.no-results p {
    color: #6b7280;
}

/* Contact Support */
.contact-support {
    background: linear-gradient(135deg, #667eea 0%, #2EA3F2 100%);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.contact-support h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-support p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.support-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.support-actions .btn {
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-actions .btn-primary {
    background: white;
    color: #2EA3F2;
}

.support-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.support-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.support-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Feedback Toast */
.feedback-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.feedback-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    color: #991b1b;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 40px 0 30px;
    }
    
    .faq-hero h1 {
        font-size: 32px;
    }
    
    .faq-hero p {
        font-size: 16px;
    }
    
    .faq-categories {
        top: 70px;
    }
    
    .category-tabs {
        padding: 0 20px 10px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .answer-content {
        padding: 0 20px 20px;
    }
    
    .contact-support {
        padding: 32px 24px;
    }
    
    .contact-support h3 {
        font-size: 24px;
    }
    
    .support-actions {
        flex-direction: column;
    }
    
    .support-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 28px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 14px 45px 14px 16px;
    }
    
    .category-tab {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .feedback-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}