/* Estilos personalizados para el buscador de la biblioteca */

/* Estilos generales */
.section-title {
    font-weight: 700;
    color: #333;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: #007bff;
    margin: 15px auto;
    border-radius: 2px;
}

/* Estilos del formulario */
.search-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-card .card-header {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Estilos para las tarjetas de resultado */
.result-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06) !important;
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.result-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.result-card .card-subtitle {
    font-size: 0.95rem;
}

.result-card .badge {
    font-weight: 500;
}

.description-text {
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos de paginación - Estilo minimalista */
#paginationContainer {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Contenedor de paginación minimalista */
.pagination-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f7;
    border-radius: 30px;
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: auto;
    display: inline-flex;
}

/* Botones de navegación */
.pagination-minimal .btn-arrow {
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-minimal .btn-arrow:hover:not(.disabled) {
    background-color: rgba(0, 123, 255, 0.1);
}

.pagination-minimal .btn-arrow.disabled {
    color: #bbb;
    cursor: not-allowed;
}

/* Indicador de página */
.pagination-minimal .page-indicator {
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.05em;
}

/* Estilos para dispositivos móviles */
@media (max-width: 767.98px) {
    .result-card .card-title {
        font-size: 1.1rem;
    }
    
    .book-details .row > div {
        margin-bottom: 8px;
    }
}
