/* ---------- Segmented control (sliding pill button group) ---------- */
.segmented {
    display: inline-flex;
    background: var(--bg-3);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.segmented a {
    border: none;
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* .segmented a:hover { color: var(--heading); } */

.segmented a.active {
    background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(124, 92, 255, .35);
}

.filter-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.filter-scroll::-webkit-scrollbar { height: 5px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--brand-4); border-radius: 10px; }

/* ---------- Active filter chips (removable) ---------- */
.active-chip {
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: var(--heading);
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .2s ease;
}

.active-chip:hover {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fff;
}

/* ---------- Category / tag pills (mobile scroll rail, standalone links) ---------- */
.category-pill {
    border-radius: 999px;
    border: 1px solid var(--bg-3);
    background: var(--bg-3);
    color: var(--text-primary);
    padding: .45rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s ease;
}

.category-pill:hover { border-color: var(--brand-purple); color: white !important; }

.category-pill.active {
    background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
    border-color: transparent;
    color: #fff !important;
}

/* ---------- Vertical category nav (desktop sidebar) ---------- */
.category-nav {
    background: var(--bg-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.category-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all .2s ease;
}

.category-nav a:hover { background: rgba(255, 255, 255, 0.03); color: var(--heading); }

.category-nav a.active {
    background: rgba(124, 92, 255, 0.1);
    border-left-color: var(--brand-3);
    color: #fff;
}

.category-nav .emoji { font-size: 1.05rem; width: 1.4rem; text-align: center; }
