/**
 * Lake City Ultrabots Team 8041 - FAQ Page
 * Dark theme, search + category filter, smooth accordion.
 */

/* ─── Filter bar ─────────────────────────────────────────────────────────────── */
.faq-filter-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 60px;
    z-index: 50;
}

.faq-filter-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Search input */
.faq-search-wrap {
    position: relative;
}

.faq-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.faq-search {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 9px 14px 9px 38px;
    transition: border-color 0.2s, background-color 0.2s;
}

.faq-search:focus {
    outline: none;
    border-color: var(--primary, #CC0000);
    background-color: rgba(255, 255, 255, 0.09);
}

.faq-search::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

/* Category filter pills */
.faq-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.faq-filter-btn {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.faq-filter-btn.active {
    background: var(--primary, #CC0000);
    border-color: var(--primary, #CC0000);
    color: white;
    font-weight: 600;
}

@media (min-width: 680px) {
    .faq-filter-bar .container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .faq-search-wrap {
        flex: 0 0 260px;
    }
}

/* ─── Main section ───────────────────────────────────────────────────────────── */
.faq-main-section {
    padding: 48px 0 64px;
    background-color: #111;
}

/* ─── Category block ─────────────────────────────────────────────────────────── */
.faq-category {
    margin-bottom: 48px;
}

.faq-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0 auto 16px;
    padding: 0 0 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary, #CC0000);
    max-width: 860px;
}

/* ─── FAQ item (accordion) ───────────────────────────────────────────────────── */
.faq-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.13);
}

.faq-item.active {
    border-color: rgba(204, 0, 0, 0.35);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Question button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.faq-question:hover {
    color: white;
}

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

/* Chevron icon */
.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary, #CC0000);
}

/* Answer panel */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 4px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    margin: 12px 0 0;
    font-size: 0.95rem;
}

.faq-answer p:first-child {
    margin-top: 14px;
}

.faq-answer a {
    color: var(--primary, #CC0000);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.faq-answer a:hover {
    color: #ff4444;
}

.faq-answer-list {
    padding-left: 20px;
    margin: 10px 0 4px;
}

.faq-answer-list li {
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 6px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.faq-answer-list--ordered {
    list-style-type: decimal;
}

/* ─── Easter egg ─────────────────────────────────────────────────────────────── */
.faq-easter-egg {
    max-width: 860px;
    margin: 0 auto;
}

.easter-egg-item {
    border-color: rgba(204, 0, 0, 0.25) !important;
    background: repeating-linear-gradient(
        135deg,
        rgba(204, 0, 0, 0.03),
        rgba(204, 0, 0, 0.03) 10px,
        transparent 10px,
        transparent 20px
    ) !important;
}

.easter-egg-sig {
    font-style: italic;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.85rem !important;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

/* ─── No results ─────────────────────────────────────────────────────────────── */
.faq-no-results {
    text-align: center;
    padding: 64px 20px;
    color: rgba(255, 255, 255, 0.35);
}

.faq-no-results svg {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.faq-no-results p {
    font-size: 1rem;
    line-height: 1.6;
}

.faq-clear-search {
    background: none;
    border: none;
    color: var(--primary, #CC0000);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* ─── Contact CTA ────────────────────────────────────────────────────────────── */
.contact-cta-section {
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px 0;
    text-align: center;
}

.contact-cta-section h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.contact-cta-section p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto 28px;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary, #CC0000);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.btn-cta:hover {
    background-color: #aa0000;
    transform: translateY(-2px);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .faq-question {
        font-size: 0.925rem;
        padding: 15px 16px;
    }

    .faq-answer-inner {
        padding: 4px 16px 18px;
    }

    .faq-category-title {
        font-size: 0.7rem;
    }

    .contact-cta-section h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    .faq-main-section {
        padding: 60px 0 80px;
    }

    .faq-category {
        margin-bottom: 60px;
    }
}
