/* Biblioteca publica: estilos propios sobre Bootstrap y la hoja de la app. */

.biblioteca-card {
    background: var(--bs-body-bg, #15151a);
    border: 1px solid rgba(217, 184, 107, 0.25);
    border-radius: 0.6rem;
    transition: border-color .15s ease, transform .15s ease;
}

.biblioteca-card:hover,
.biblioteca-card:focus-within {
    border-color: rgba(217, 184, 107, 0.7);
    transform: translateY(-2px);
}

.biblioteca-card-link {
    display: block;
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.biblioteca-card-link:hover,
.biblioteca-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.biblioteca-count {
    color: #d9b86b;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.biblioteca-stat {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(217, 184, 107, 0.2);
    border-radius: .6rem;
    padding: .9rem 1rem;
    height: 100%;
}

.biblioteca-stat dt {
    color: var(--bs-secondary-color, #a9a7a0);
    font-size: .85rem;
    font-weight: 400;
}

.biblioteca-stat dd {
    margin: .2rem 0 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.biblioteca-ficha-img {
    width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: .6rem;
    border: 1px solid rgba(217, 184, 107, 0.3);
    background: #15151a;
}

.crumbs a {
    color: var(--bs-secondary-color, #a9a7a0);
    text-decoration: none;
}

.crumbs a:hover,
.crumbs a:focus {
    color: #d9b86b;
    text-decoration: underline;
}

.header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-available { background: rgba(95, 191, 135, .18); color: #7fd6a1; }
.badge-pending { background: rgba(217, 163, 74, .18); color: #e5bb74; }
.badge-unverified { background: rgba(143, 147, 163, .18); color: #b3b7c4; }

@media (max-width: 575.98px) {
    .biblioteca-ficha-img {
        width: 100%;
        height: auto;
        aspect-ratio: 260 / 200;
    }
}

/* Bloque Oraculo del panel: cuatro acciones con el mismo ancho. */
.dashboard-actions--oracle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 575.98px) {
    .dashboard-actions--oracle {
        grid-template-columns: 1fr;
    }
}

/* Resultados del buscador: listado con titulo, resumen y enlace. */
.biblioteca-results {
    border-top: 1px solid rgba(217, 184, 107, 0.2);
}

.biblioteca-result {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(217, 184, 107, 0.2);
}

.biblioteca-result-title {
    color: inherit;
    text-decoration: none;
}

.biblioteca-result-title:hover,
.biblioteca-result-title:focus {
    color: #d9b86b;
}

.biblioteca-result-text {
    color: var(--bs-secondary-color, #a9a7a0);
    max-width: 75ch;
}
