/* Public FAQ Page Styles */
.faq-container {
    min-height: 80vh;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease;
}

.hero-title i {
    margin-right: 15px;
    font-size: 32px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

/* Search Box */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 55px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.search-clear:hover {
    color: #666;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.search-result-answer {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-result-category {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-top: 5px;
}

/* Highlighted search terms */
.search-results mark {
    background: #fff3cd;
    color: inherit;
    font-weight: 600;
    padding: 0 2px;
}

/* Quick Links */
.quick-links {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-links h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.topic-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.topic-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.topic-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.topic-count {
    font-size: 14px;
    color: #666;
}

/* Main FAQ Layout */
.faq-main {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sidebar */
.faq-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.faq-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item:hover {
    background: #f0f0f0;
}

.category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.category-item span {
    flex: 1;
}

.category-item .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.category-item.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* FAQ Content */
.faq-content {
    flex: 1;
    min-width: 0;
}

/* FAQ Accordion */
.faq-section {
    margin-bottom: 30px;
}

.faq-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-section-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #333;
    transition: background 0.2s ease;
}

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

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    animation: slideDown 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer-content {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

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

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

/* FAQ Feedback */
.faq-feedback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-text {
    color: #666;
    font-size: 14px;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feedback-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.feedback-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.feedback-btn i {
    font-size: 14px;
}

.feedback-count {
    font-size: 12px;
    opacity: 0.8;
}

/* Popular FAQs */
.popular-faqs {
    background: #f8f9fa;
    padding: 40px 20px;
}

.popular-faqs h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.popular-list {
    max-width: 800px;
    margin: 0 auto;
}

.popular-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popular-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popular-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.popular-question {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.popular-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

/* Need Help Section */
.need-help {
    padding: 60px 20px;
    text-align: center;
}

.help-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.help-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 36px;
}

.help-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.help-content p {
    color: #666;
    margin-bottom: 20px;
}

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

.spinner-border {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* Feedback Toast */
.feedback-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px 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;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .faq-main {
        flex-direction: column;
    }
    
    .faq-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .category-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
    }
    
    .category-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-buttons {
        width: 100%;
        justify-content: center;
    }
}

