/* ═══════════════════════════════════════════════════════════════
   常見問題 Q&A 頁面 - Cyberpunk Theme
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.faq-hero .server-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* Main */
.faq-main {
    margin: 2rem 0;
}

/* FAQ Category */
.faq-category {
    margin-bottom: 3rem;
    animation: cardReveal 0.6s ease-out both;
}

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

.category-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(0, 245, 212, 0.3);
    letter-spacing: 1px;
}

/* FAQ Item */
.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 245, 212, 0.2);
}

.faq-item.open {
    border-color: rgba(0, 245, 212, 0.4);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.1);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question span:first-child {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    font-weight: 300;
    transition: transform 0.3s ease;
    width: 30px;
    text-align: center;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-question:hover span:first-child {
    color: var(--neon-cyan);
}

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

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

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

.faq-answer li {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.faq-answer code {
    background: rgba(0, 245, 212, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--neon-cyan);
    font-size: 1rem;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* More Help Section */
.more-help {
    margin: 3rem 0;
}

.help-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(0, 245, 212, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.help-card h2 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.help-card p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.discord-btn {
    display: inline-block;
    background: #5865f2;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.6);
    background: #4752c4;
}

/* Footer */
.faq-footer {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

.faq-footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-hero .server-title {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
    }

    .faq-question span:first-child {
        font-size: 1.1rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }

    .help-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.4rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
    }

    .faq-question span:first-child {
        font-size: 1rem;
    }

    .help-card {
        padding: 1.5rem;
    }

    .discord-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
