/* FAQ Page Styles */

/* FAQ List Styles */
.faq-accordion {
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--bs-white);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.faq-item.faq-pinned {
    border-left: 4px solid var(--warning-color);
}

.faq-item.faq-pinned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--warning-color), var(--primary-color));
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-question-content {
    flex: 1;
}

.faq-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
}

.faq-slogan {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.faq-pin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--warning-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--light-color);
}

.faq-answer-content {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-content {
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.faq-content p {
    margin-bottom: 0.75rem;
}

.faq-content ul, .faq-content ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.faq-content li {
    margin-bottom: 0.25rem;
}

.faq-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* FAQ Detail Styles */
.faq-detail-card {
    background: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.faq-detail-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    position: relative;
}

.faq-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.faq-detail-slogan {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.faq-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.faq-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.faq-detail-content {
    padding: 2rem;
}

.faq-answer-label {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-content-body {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--dark-color);
}

.faq-content-body h1, .faq-content-body h2, .faq-content-body h3,
.faq-content-body h4, .faq-content-body h5, .faq-content-body h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

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

.faq-content-body ul, .faq-content-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.faq-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--secondary-color);
}

.faq-content-body code {
    background-color: var(--light-color);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.faq-content-body pre {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
}

/* FAQ Attachments */
.faq-attachments {
    padding: 2rem;
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--light-color);
}

.faq-attachments-title {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bs-white);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.faq-attachment-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-sm);
}

.faq-attachment-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.faq-attachment-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.faq-attachment-details {
    flex: 1;
}

.faq-attachment-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-attachment-meta {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.faq-attachment-actions {
    flex-shrink: 0;
}

/* Search Form */
.faq-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Empty States */
.faq-empty-state, .faq-error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
}

.faq-empty-icon, .faq-error-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.faq-empty-state h4, .faq-error-state h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.faq-empty-state p, .faq-error-state p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Support Card */
.faq-support-card {
    background: var(--bs-white);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    padding: 2rem;
    text-align: center;
}

.faq-support-content h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-support-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.faq-support-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .faq-detail-header {
        padding: 1.5rem;
    }
    
    .faq-detail-title {
        font-size: 1.5rem;
    }
    
    .faq-detail-content {
        padding: 1.5rem;
    }
    
    .faq-attachments {
        padding: 1.5rem;
    }
    
    .faq-attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .faq-attachment-actions {
        align-self: stretch;
    }
    
    .faq-support-actions {
        flex-direction: column;
    }
}

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

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

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