/* ==================================================
   Portfolio category filter -- brand pill chips (orange / ink / Apple
   font), matching the rest of the page. Filtering is AJAX (see the
   script in portfolio.php): only #portfolio-catalog below this bar is
   swapped, the page never reloads or scrolls back to the top.
   ================================================== */
.pf-filters, .pf-filters * { all: revert; box-sizing: border-box; }

.pf-filters {
    --pf2-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --pf2-orange: #ff5e14;
    --pf2-orange-light: #ff7c3d;
    --pf2-ink: #14161a;
    --pf2-muted: #6b7280;
    --pf2-line: #e9eaee;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 980px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-family: var(--pf2-font);
}

.pf-filters .pf-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid var(--pf2-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pf2-muted);
    font-family: var(--pf2-font);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pf-filters .pf-chip:hover {
    border-color: var(--pf2-orange);
    color: var(--pf2-orange);
    transform: translateY(-1px);
}

.pf-filters .pf-chip.is-active {
    background: var(--pf2-orange);
    border-color: var(--pf2-orange);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 94, 20, 0.28);
}

.pf-filters .pf-chip.is-active:hover { color: #fff; transform: none; }

/* ---------- Catalog: fade while a filter request is loading ---------- */
#portfolio-catalog {
    scroll-margin-top: 90px;
    transition: opacity 0.2s ease;
}

#portfolio-catalog.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .pf-filters { gap: 8px; margin-bottom: 28px; padding: 0 16px; }
    .pf-filters .pf-chip { padding: 8px 16px; font-size: 12.5px; }
}
