/*
 * Liam Blue – Bücher Übersicht  |  buecher-style.css
 * -------------------------------------------------------
 * Helles Design (weißer Hintergrund).
 * Eigene Anpassungen am Ende dieser Datei einfügen.
 */

:root {
    --lbb-accent:         #187ea8;
    --lbb-accent-hover:   #7c3aed;
    --lbb-bg:             #ffffff;
    --lbb-sidebar-bg:     #f8f7ff;
    --lbb-topbar-bg:      #f3f4f6;
    --lbb-text:           #1f2937;
    --lbb-text-muted:     #6b7280;
    --lbb-border:         #e5e7eb;
    --lbb-item-radius:    8px;
    --lbb-sidebar-width:  200px;
    --lbb-gap:            16px;
    --lbb-font:           inherit;

    /* Status-Badge */
    --lbb-badge-published:   #059669;
    --lbb-badge-coming-soon: #d97706;
}

/* ── WRAPPER ── */
.lbb-wrapper {
    font-family: var(--lbb-font);
    color: var(--lbb-text);
    background: var(--lbb-bg);
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.lbb-wrapper *,
.lbb-wrapper *::before,
.lbb-wrapper *::after {
    box-sizing: border-box;
}

/* ── TOP BAR ── */
.lbb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--lbb-topbar-bg);
    border: 1px solid var(--lbb-border);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.lbb-status-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lbb-text-muted);
    margin-right: 6px;
}

.lbb-status-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lbb-status-btn {
    background: #ffffff;
    color: var(--lbb-text-muted);
    border: 1px solid var(--lbb-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.lbb-status-btn:hover {
    border-color: var(--lbb-accent);
    color: var(--lbb-accent);
}

.lbb-status-btn.active {
    background: var(--lbb-accent);
    border-color: var(--lbb-accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139,92,246,0.25);
}

.lbb-status-btn.lbb-status-empty {
    opacity: 0.35;
    cursor: not-allowed;
}

.lbb-status-btn.lbb-status-empty:hover {
    border-color: var(--lbb-border);
    color: var(--lbb-text-muted);
}

.lbb-total-info {
    font-size: 0.88rem;
    color: var(--lbb-text-muted);
    text-align: right;
    white-space: nowrap;
}

.lbb-total-info strong {
    color: var(--lbb-accent);
    font-size: 1.05rem;
}

.lbb-total-of {
    font-size: 0.8rem;
    color: var(--lbb-text-muted);
}

/* ── HAUPTBEREICH ── */
.lbb-main {
    display: grid;
    grid-template-columns: var(--lbb-sidebar-width) 1fr var(--lbb-sidebar-width);
    gap: var(--lbb-gap);
    align-items: start;
}

/* ── SIDEBARS ── */
.lbb-sidebar {
    background: var(--lbb-sidebar-bg);
    border: 1px solid var(--lbb-border);
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 20px;
}

.lbb-sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lbb-accent);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--lbb-border);
}

.lbb-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lbb-border) transparent;
}

.lbb-filter-list::-webkit-scrollbar { width: 4px; }
.lbb-filter-list::-webkit-scrollbar-thumb { background: var(--lbb-border); border-radius: 2px; }

.lbb-filter-list li { margin: 0; padding: 0; }

.lbb-filter-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 4px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--lbb-text);
    border-radius: 4px;
    transition: background 0.15s;
    line-height: 1.3;
}

.lbb-filter-label:hover { background: rgba(139,92,246,0.06); }

.lbb-filter-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1.5px solid var(--lbb-text-muted);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    flex-shrink: 0;
}

.lbb-filter-label input[type="checkbox"]:checked {
    background: var(--lbb-accent);
    border-color: var(--lbb-accent);
}

.lbb-filter-label input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 7px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.lbb-label-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lbb-count {
    font-size: 0.75rem;
    color: var(--lbb-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.lbb-reset-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 6px 0;
    background: transparent;
    border: 1px solid var(--lbb-border);
    border-radius: 4px;
    color: var(--lbb-text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.lbb-reset-btn:hover {
    border-color: var(--lbb-accent);
    color: var(--lbb-accent);
}

.lbb-empty-note {
    font-size: 0.8rem;
    color: var(--lbb-text-muted);
    font-style: italic;
}

/* ── CONTENT ── */
.lbb-content { position: relative; min-height: 200px; }

/* ── GRID ── */
.lbb-grid {
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    gap: var(--lbb-gap);
    transition: opacity 0.25s ease;
}

.lbb-grid.lbb-loading { opacity: 0.35; pointer-events: none; }

.lbb-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--lbb-text-muted);
    font-size: 0.95rem;
}

/* ── BÜCHER-ITEM ── */
.lbb-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--lbb-item-radius);
    background: #f9fafb;
    border: 1px solid var(--lbb-border);
    aspect-ratio: 2 / 3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lbb-item:hover {
    transform: translateY( -4px );
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.lbb-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.lbb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.lbb-item:hover img { transform: scale(1.03); }

/* Overlay */
.lbb-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lbb-item:hover .lbb-item-overlay { opacity: 1; }

.lbb-item-title {
    display: block;
    font-size: 0.78rem;
    color: #fff;
    line-height: 1.3;
    text-align: center;
}

/* Status-Badge */
.lbb-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    pointer-events: none;
}

.lbb-status-badge.lbb-status-published    { background: var(--lbb-badge-published); }
.lbb-status-badge.lbb-status-coming-soon  { background: var(--lbb-badge-coming-soon); }

/* Fallback kein Bild */
.lbb-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--lbb-text-muted);
    background: #f3f4f6;
}

/* ── LOADING ── */
.lbb-loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
}

.lbb-loading-overlay.active { display: flex; }

.lbb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--lbb-border);
    border-top-color: var(--lbb-accent);
    border-radius: 50%;
    animation: lbb-spin 0.7s linear infinite;
}

@keyframes lbb-spin { to { transform: rotate(360deg); } }

/* ── PAGINATION ── */
.lbb-pagination { margin-top: 24px; }

.lbb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.lbb-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid var(--lbb-border);
    border-radius: 6px;
    color: var(--lbb-text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.lbb-page-btn:hover { border-color: var(--lbb-accent); color: var(--lbb-accent); }

.lbb-page-btn.lbb-active {
    background: var(--lbb-accent);
    border-color: var(--lbb-accent);
    color: #ffffff;
    font-weight: 700;
    cursor: default;
}

.lbb-page-btn.lbb-prev,
.lbb-page-btn.lbb-next { font-size: 1.1rem; font-weight: 600; }

.lbb-page-ellipsis { color: var(--lbb-text-muted); padding: 0 4px; user-select: none; }

/* ── RESPONSIVE ── */
@media ( max-width: 1024px ) {
    .lbb-main {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "left right" "content content";
    }
    .lbb-sidebar-left  { grid-area: left; }
    .lbb-sidebar-right { grid-area: right; }
    .lbb-content       { grid-area: content; }
    .lbb-sidebar       { position: static; }
}

@media ( max-width: 900px ) {
    .lbb-grid { grid-template-columns: repeat( 3, 1fr ); }
}

@media ( max-width: 600px ) {
    .lbb-main {
        grid-template-columns: 1fr;
        grid-template-areas: "left" "right" "content";
    }
    .lbb-grid { grid-template-columns: repeat( 2, 1fr ); }
    .lbb-topbar { flex-direction: column; align-items: flex-start; }
    .lbb-total-info { text-align: left; }
}

/* =====================================================
   EIGENE ANPASSUNGEN  ↓  hier einfügen
   ===================================================== */
