/* website/app/static/css/browse.css */

.browse {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Search bar */
.search-bar {
    margin-bottom: 1rem;
    text-align: center;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 1rem;
    background: var(--category-blue);
    border: 1px solid var(--sepia-border);
    border-radius: 6px;
    color: var(--sepia);
    font-size: 0.9rem;
    font-family: inherit;
    text-align: center;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--sepia);
}

.search-bar input::placeholder {
    color: var(--sepia-subtle);
    opacity: 0.6;
}

/* Search results */
.search-results {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.no-results {
    text-align: center;
    color: var(--light-sepia);
    padding: 2rem;
}

/* Prime grid */
.prime-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(11, 1fr);
    gap: 0;
    align-content: start;
}

.prime-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    text-decoration: none;
    color: var(--sepia);
    transition: opacity 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(107, 86, 68, 0.2);
}

.prime-cell:hover {
    opacity: 0.6;
}

.cell-prime {
    font-weight: 600;
    color: var(--sepia-title);
    min-width: 3.5rem;
}

.cell-title {
    flex: 1;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-date {
    color: var(--sepia-subtle);
    font-size: 0.8rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.page-arrow {
    color: var(--sepia);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.2s;
}

.page-arrow:hover {
    opacity: 0.6;
}

.page-info {
    color: var(--sepia-subtle);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .prime-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .cell-date {
        display: none;
    }
}
