/* ================================================================
   UTD Games — FAQ Page Styles
   ================================================================ */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: transparent;
    min-height: calc(100vh - 120px);
}

.faq-container .page-header {
    margin-top: 70px;
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.faq-container .page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.faq-container .page-title svg {
    color: #60a5fa;
}

.faq-container .page-title-icon {
    margin-right: 1rem;
    vertical-align: middle;
}

.faq-container .page-subtitle {
    font-size: 1.1rem;
    color: #cbd5e0;
    margin: 0;
    opacity: 0.9;
}

/* Search bar */
.faq-search-wrap,
.news-search-wrap {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.faq-search-icon,
.news-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    pointer-events: none;
}

.faq-search-input,
.news-search-input {
    width: 100%;
    padding: .7rem 1rem .7rem 2.8rem;
    background: rgba(15,20,35,0.7);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 2rem;
    color: #e2e8f0;
    font-size: .9rem;
    outline: none;
    backdrop-filter: blur(8px);
    transition: border-color .2s;
}

.faq-search-input:focus,
.news-search-input:focus {
    border-color: rgba(99,102,241,0.6);
}

.faq-search-clear,
.news-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* FAQ Cards */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
}

.faq-question:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
}

.question-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.question-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    color: #94a3b8;
    flex-shrink: 0;
}

.toggle-arrow.rotated {
    transform: rotate(180deg);
}

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

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

.answer-content {
    margin-top: 15px;
    padding: 0 2rem 1.5rem;
    background: rgba(15, 23, 42, 0.3);
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

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

.answer-bullet {
    color: #60a5fa;
    flex-shrink: 0;
}

.answer-text {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

.faq-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Help Section */
.help-section {
    margin-top: 3rem;
}

.help-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.help-icon {
    color: #10b981;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.help-content h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.help-content p {
    color: #cbd5e0;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c4aa0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-container {
        padding: 1rem 0.5rem;
    }

    .faq-container .page-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .faq-container .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

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

    .question-wrapper {
        gap: 0.75rem;
    }

    .question-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .question-text {
        font-size: .95rem;
    }

    .answer-content {
        padding: 0 1.25rem 1rem;
    }

    .help-card {
        padding: 1.5rem;
    }

    .faq-container .page-subtitle {
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .faq-container .page-title {
        font-size: 1.25rem;
    }

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

    .answer-content {
        padding: 0 1rem 1rem;
    }
}
