/* Bookshelf Page Styles - Matches existing site theme */

/* Controls */
.bookshelf-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-bottom: 1.5em;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 0.5em;
    border: 1px solid var(--global-border-color);
    border-radius: 4px;
    font-size: 0.75em;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--global-base-color);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.filter-controls select {
    padding: 0.5em;
    border: 1px solid var(--global-border-color);
    border-radius: 4px;
    font-size: 0.75em;
    font-family: inherit;
    background-color: var(--global-bg-color);
    cursor: pointer;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--global-base-color);
}

/* Table - uses existing site table styles, just adds sorting */
.bookshelf-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.bookshelf-table th.sortable:hover {
    background-color: var(--global-dark-border-color);
}

.sort-icon {
    margin-left: 0.35em;
    opacity: 0.6;
}

/* Book Title Cell */
.book-title-cell a {
    color: var(--global-link-color);
    text-decoration: none;
}

.book-title-cell a:hover {
    color: var(--global-link-color-hover);
    text-decoration: underline;
}

.book-notes-icon {
    margin-left: 0.5em;
    font-size: 0.85em;
    cursor: pointer;
}

/* Rating display */
.rating-cell {
    white-space: nowrap;
    font-size: 0.9em;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2em;
    color: var(--global-text-color-light);
}

/* Books Count */
.books-count {
    text-align: right;
    color: var(--global-text-color-light);
    font-size: 0.75em;
    margin-top: 0.5em;
}

/* Responsive Design */
@media (max-width: 600px) {
    .bookshelf-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls select {
        width: 100%;
    }
}