/* Static FAQ page styles (extracted from templates/faq.html). Every selector is
   scoped under the .faq-page wrapper. Body copy uses the canonical Arial stack;
   headings/buttons stay Orbitron (on-brand). The category-filter base rules are
   placed ABOVE the media queries so the responsive gap/padding overrides below
   actually take effect. */

.faq-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-page .top-padding {
    padding-top: 80px;
}

.faq-page .faq-title {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
}

.faq-page .faq-list {
    margin-bottom: 30px;
}

.faq-page .faq-item {
    background-color: rgba(40, 0, 40, 0.7);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.faq-page .faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.faq-page .faq-question .arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.faq-page .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(30, 10, 40, 0.7);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.faq-page .faq-answer p {
    padding: 1.2rem 1.5rem;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
}

/* Fix for CKEditor content color */
.faq-page .faq-answer * {
    color: rgba(255, 255, 255, 0.9) !important;
}

.faq-page .faq-answer a {
    color: #ff00ff !important;
    text-decoration: underline;
}

/* Category filter buttons — base. Must precede the media queries so the
   responsive gap/padding overrides apply. min-height keeps the pills a 44px
   touch target (WCAG 2.5.5). */
.faq-page .faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.faq-page .faq-category-btn {
    background-color: rgba(40, 0, 40, 0.7);
    color: white;
    border: 1px solid rgba(255, 0, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-page .faq-category-btn:hover, .faq-page .faq-category-btn.active {
    background-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

@media (max-width: 768px) {
    .faq-page .faq-title {
        font-size: 2rem;
    }

    .faq-page .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-page .faq-answer {
        border-top: 1px solid rgba(255, 0, 255, 0.15);
    }

    .faq-page .faq-answer p {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .faq-page {
        padding: 0 5px;
        max-width: 100%;
    }

    .faq-page .faq-item {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .faq-page .top-padding {
        padding-top: 100px;
    }

    .faq-page .faq-categories {
        padding: 0 5px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .faq-page .faq-category-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .faq-page .faq-categories {
        gap: 6px;
    }

    .faq-page .faq-category-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: auto;
    }

    .faq-page .faq-question {
        font-size: 0.95rem;
        padding: 0.9rem;
    }
}
