/* Public catalog shell — placeholder styles for the Figma A24 catalog. */
/* Real visual parity depends on the Figma A24 frame from INPA-13; these rules */
/* provide a sensible, readable default so the React bridge has a working shell */
/* while the design lands. Once A24 ships, swap selectors here for the approved */
/* tokens without touching the bridge contract. */

/* INPA-467 WF-1 (2026-07-05): all --vp-* refs now resolve to canonical tokens
   declared in tokens.css. Broken refs at file-onboarding (2026-06-23):
     --vp-color-surface        → --vp-color-bg-surface         (×1, line 13)
     --vp-color-surface-muted  → --vp-color-bg-muted           (×3, lines 38/71/141)
     --vp-color-border         → --vp-color-border-subtle      (×8, alias to --vp-color-border)
     --vp-color-chip-bg        → --vp-color-chip-bg            (×1, NEW token)
     --vp-color-chip-text      → --vp-color-chip-text          (×1, NEW token)
     --vp-color-text-error     → --vp-color-error              (×1)
     --vp-radius-button        → --vp-radius-md                (×4, was 6px → md 8px)
     --vp-radius-input         → --vp-radius-md                (×1, was 8px == md 8px)
   Concrete hex fallbacks preserved so this file degrades gracefully on legacy
   routes that do not load tokens.css.

   INPA-488 WF-9 (2026-07-05): stale hex fallbacks normalised to canonical
   token values so the un-tokenized render matches the tokenized render
   exactly. Counts:
     #e1e1e1 → #e0e0e0      (×3, --vp-color-border canonical post-WF-6)
     #d1d5db → #e0e0e0      (×3, same — was Tailwind gray-300 drift)
     #4b5563 → #6b6b6b      (×3, --vp-color-text-secondary canonical)
     #6b7280 → #6b6b6b      (×2, same — was Tailwind gray-500 drift)
     #646464 → #6b6b6b      (×1, --vp-color-text-secondary, pre-WF-6)
     rgba(15,23,42,0.08) → rgba(15,23,42,0.07)  (×1, --vp-elevation-soft)
     #fff → var(--vp-color-bg-surface, #ffffff)  (×4, surface consistency)
   Plus: --vp-color-border-subtle → --vp-color-border (alias, exact value;
   the alias is preserved in tokens.css for back-compat with other files).
   No radius value changed; AC3 (no regression on 360/640/768/1024/1440)
   holds because all edits are inside existing var() / value positions. */

.public-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.public-catalog h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.public-catalog__lede {
    margin: 0 0 1.5rem;
    color: var(--vp-color-text-secondary, #6b6b6b);
}

.public-catalog__filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    background: var(--vp-color-bg-muted, #f8f8f8);
    border: 1px solid var(--vp-color-border, #e0e0e0);
    border-radius: var(--vp-radius-card, 20px);
    margin-bottom: 1.5rem;
}

.public-catalog__filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vp-color-text-secondary, #6b6b6b);
}

.public-catalog__filters select,
.public-catalog__filters input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--vp-color-border, #e0e0e0);
    border-radius: var(--vp-radius-md, 8px);
    background: var(--vp-color-bg-surface, #ffffff);
    color: inherit;
    font-weight: 400;
}

.public-catalog__filters button {
    padding: 0.5rem 1rem;
    border-radius: var(--vp-radius-md, 8px);
    border: 1px solid var(--vp-color-border, #e0e0e0);
    background: var(--vp-color-bg-surface, #ffffff);
    color: inherit;
    cursor: pointer;
    align-self: end;
    height: fit-content;
}

.public-catalog__results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.public-catalog__card {
    background: var(--vp-color-bg-surface, #ffffff);
    border: 1px solid var(--vp-color-border, #e0e0e0);
    border-radius: var(--vp-radius-card, 20px);
    overflow: hidden;
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.public-catalog__card:hover {
    box-shadow: var(--vp-elevation-soft, 0 12px 30px rgba(15, 23, 42, 0.07));
    transform: translateY(-2px);
}

.public-catalog__card-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.public-catalog__card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--vp-color-bg-muted, #f8f8f8);
}

.public-catalog__card-avatar--placeholder {
    display: inline-block;
}

.public-catalog__card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.public-catalog__card-city {
    margin: 0;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 0.9rem;
}

.public-catalog__card-about {
    margin: 0;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 0.9rem;
}

.public-catalog__card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.public-catalog__card-chip {
    padding: 0.125rem 0.5rem;
    background: var(--vp-color-chip-bg, #eef2ff);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--vp-color-chip-text, #3730a3);
}

.public-catalog__empty,
.public-catalog__error {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: var(--vp-color-text-secondary, #6b6b6b);
    border-radius: var(--vp-radius-emptystate, 12px); /* INPA-488 v6 — UI KIT EmptyState/ErrorMessage cornerRadius */
}

.public-catalog__error {
    color: var(--vp-color-error, #b00020);
}

.public-catalog__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 3rem;
}

.public-catalog__page-button {
    padding: 0.5rem 1rem;
    border-radius: var(--vp-radius-md, 8px);
    border: 1px solid var(--vp-color-border, #e0e0e0);
    background: var(--vp-color-bg-surface, #ffffff);
    color: inherit;
    cursor: pointer;
}

.public-catalog__page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.public-catalog__page-indicator {
    font-size: 0.9rem;
    color: var(--vp-color-text-secondary, #6b6b6b);
}

.public-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--vp-color-border, #e0e0e0);
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 0.875rem;
}

.public-footer a {
    color: inherit;
    text-decoration: none;
}

.public-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .public-catalog {
        padding: 1rem;
    }

    .public-catalog h1 {
        font-size: 1.4rem;
    }
}