/* =========================================================
   fish-filters.css
   Search + category/stock filter pills for the Fish Varieties
   page. Pure presentational CSS — carries no text of its own.
   ========================================================= */

.filter-bar,
.stock-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 18px;
    padding: 0 8%;
}

.stock-filter-bar {
    margin-bottom: 34px;
}

.filter-pill,
.stock-pill {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #071a2d;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(7, 26, 45, 0.12);
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover,
.stock-pill:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(0, 180, 255, 0.5);
    box-shadow: 0 6px 14px rgba(0, 180, 255, 0.18);
}

.filter-pill.active,
.stock-pill.active {
    background: var(--blue-color, #00b4ff);
    border-color: var(--blue-color, #00b4ff);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 180, 255, 0.35);
}

.stock-pill[data-stock="good"].active { background: #22c55e; border-color: #22c55e; box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35); }
.stock-pill[data-stock="low"].active  { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35); }
.stock-pill[data-stock="out"].active  { background: #ef4444; border-color: #ef4444; box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35); }

/* Empty-state message shown when a filter combo matches nothing */
.fish-no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #5a6b7a;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fish-no-results.visible {
    display: block;
}

.fish-no-results.visible.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Filtering animation states for .fish-card (FLIP-friendly) */
.fish-container .fish-card {
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
}

.fish-container .fish-card.fish-filtered-out {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .filter-pill, .stock-pill, .fish-no-results, .fish-container .fish-card {
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .filter-bar, .stock-filter-bar {
        gap: 8px;
    }
    .filter-pill, .stock-pill {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
}

/* Brief dim while a server-side filter/search request is in flight */
.fish-container.is-loading-fish {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
