/* Optional categories extend the existing search with the same site palette. */
.nexxa-category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    direction: rtl;
}
.nexxa-category-filter, .nexxa-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid rgba(167, 139, 250, .25);
    border-radius: 12px;
    background: rgba(167, 139, 250, .08);
    color: #c4b5fd;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.nexxa-category-filter[aria-pressed='true'] {
    background: rgba(167, 139, 250, .2);
    border-color: #a78bfa;
    color: #f8fafc;
}
@media (hover: hover) {
    .nexxa-category-filter:hover, .nexxa-search-reset:hover { background: rgba(167, 139, 250, .2); }
}
.nexxa-category-filter:focus-visible, .nexxa-search-reset:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;
}
.nexxa-search-empty p { margin: 0 0 12px; }
.nexxa-category-filters[hidden] { display: none !important; }
@media (prefers-color-scheme: light) {
    .nexxa-category-filter, .nexxa-search-reset {
        background: #6639ad0f;
        border-color: #6639ad40;
        color: #6639ad;
    }
    .nexxa-category-filter[aria-pressed='true'] {
        background: #6639ad1f;
        border-color: #7c3aed;
        color: #5b21b6;
    }
    .nexxa-category-filter:focus-visible, .nexxa-search-reset:focus-visible { outline-color: #7c3aed; }
    @media (hover: hover) {
        .nexxa-category-filter:hover, .nexxa-search-reset:hover { background: #6639ad1f; }
    }
}
@media (max-width: 480px) {
    .nexxa-category-filters { gap: 6px; }
    .nexxa-category-filter { padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .nexxa-category-filter, .nexxa-search-reset { transition: none; }
}
