/* Browse page — grid layout and filter bar */

.browse-page {
    padding: 1.5rem 3rem;
    max-width: 960px;
    margin: 0 auto;
}

.browse-header {
    margin-bottom: 1rem;
}

.browse-header h1 {
    font-family: var(--font-heading, var(--font-ui));
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
}

.browse-filter {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.browse-filter:focus {
    outline: none;
    border-color: var(--color-primary);
}

.browse-filter::placeholder {
    color: var(--color-muted);
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.browse-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted);
}

.browse-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-error);
}

.browse-error button {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-error);
    color: var(--color-base);
    border: 1px solid var(--color-error);
    cursor: pointer;
    font-family: var(--font-ui);
}

.browse-error button:hover {
    opacity: 0.85;
}

/* Mobile adjustments */

@media (max-width: 768px) {
    .browse-page {
        padding: 0.75rem;
    }

    .browse-header h1 {
        font-size: 1.25rem;
    }

    .browse-filter {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .browse-grid {
        gap: 0.75rem;
    }
}
