/* =========================================
   FAQ Styles (List & Detail)
   ========================================= */

/* --- Common --- */
.faq-page,
.faq-detail-page {
    min-height: 80vh;
    padding: var(--space-06) 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.page-title svg {
    fill: var(--neon-cyan);
}

.page-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Category Filter --- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    color: var(--text-muted);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.category-btn:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.category-btn.active {
    background: rgba(0, 217, 255, 0.15);
    /* Cyan opacity */
    color: var(--neon-cyan);
    border-color: var(--neon-cyan-glow);
}

/* --- FAQ List --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-default);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: var(--neon-cyan-glow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-details[open] .faq-question {
    border-bottom: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.02);
}

.faq-details[open] .chevron {
    transform: rotate(180deg);
    fill: var(--neon-cyan);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
    display: none;
}

.chevron {
    fill: var(--text-muted);
    transition: transform 0.2s, fill 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    padding: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 1rem 1.5rem;
}

/* --- Feedback --- */
.faq-feedback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-default);
}

.feedback-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vote-btn,
.btn-helpful {
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-btn:hover,
.btn-helpful:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.vote-yes:hover,
.btn-yes:hover {
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.vote-no:hover,
.btn-no:hover {
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    fill: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* --- Detail Page Specifics --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--neon-cyan-bright);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-secondary);
    opacity: 0.8;
}

.faq-article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-glass);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    backdrop-filter: blur(10px);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 1.5rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.category-badge {
    background: rgba(0, 217, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.article-content {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.article-footer {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-default);
}

.helpful-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.guide-navigation {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: var(--bg-glass-strong);
    border-color: var(--text-muted);
}

.btn-secondary svg {
    fill: currentColor;
}