/**
 * Threat News & Repository — front-end filter styling
 * Loaded only on the threat-news category archive (see inc/threat-news.php).
 * Uses the theme's existing design tokens; harmonizes with .filter-tab / .archive-grid.
 */

.threat-repo-filters {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    padding: 1.5rem 0 1.75rem;
}

.threat-filter-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.threat-filter-group:last-of-type {
    margin-bottom: 0;
}

.threat-filter-label {
    flex: 0 0 130px;
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 9px;
}

.threat-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.threat-filter-btn {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--navy-soft);
    color: #fff;
    border: 1px solid transparent;
    line-height: 1.2;
}

.threat-filter-btn:hover {
    background: var(--navy-medium);
    color: var(--gold-light);
    border-color: rgba(201, 162, 39, 0.4);
}

.threat-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: #fff;
    font-weight: 600;
}

.threat-filter-active {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.threat-filter-active span {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.threat-filter-active strong {
    color: var(--gold-light);
}

.threat-filter-clear {
    margin-left: 0.5rem;
    color: var(--gold-light);
    text-decoration: underline;
    font-size: 0.82rem;
}

.threat-filter-clear:hover {
    color: #fff;
}

@media screen and (max-width: 782px) {
    .threat-filter-label {
        flex-basis: 100%;
        padding-top: 0;
        margin-bottom: 0.25rem;
    }
}
