/* JUANEWS BookHub Library - layout + sidebar filters */
/* Uses same card classes from engine for cards */

.juanews-bookhub-library-wrap {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

@media (max-width: 900px) {
    .juanews-bookhub-library-wrap {
        grid-template-columns: 1fr;
    }
}

.jb-lib-sidebar {
    background: #020617;
    border-radius: 12px;
    border: 1px solid #111827;
    padding: 1rem 1.2rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.jb-lib-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f9fafb;
}

.jb-lib-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jb-lib-field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.2rem;
}

.jb-lib-field input,
.jb-lib-field select {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.85rem;
}

.jb-lib-field input:focus,
.jb-lib-field select:focus {
    outline: none;
    border-color: #facc15;
}

.jb-lib-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.jb-lib-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.jb-lib-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: #facc15;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.jb-lib-btn:hover {
    background: #eab308;
}

.jb-lib-reset {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
}

.jb-lib-reset:hover {
    color: #facc15;
}

.jb-lib-results {
    min-height: 200px;
}

.jb-lib-empty {
    padding: 1.5rem;
    border-radius: 12px;
    background: #020617;
    border: 1px solid #111827;
    color: #9ca3af;
}

.jb-lib-pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1.25rem 0 0;
    padding: 0;
}

.jb-lib-pagination li a,
.jb-lib-pagination li span {
    display: inline-flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #374151;
    font-size: 0.8rem;
    text-decoration: none;
    color: #e5e7eb;
}

.jb-lib-pagination li span.current {
    background: #facc15;
    color: #111827;
    border-color: #facc15;
}

.jb-lib-pagination li a:hover {
    border-color: #facc15;
    color: #facc15;
}
