/* Estilos para el catálogo de libros */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.filters-container {
    text-align: center;
}

.filter-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

#resultsContainer {
    min-height: 500px;
}

.book-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.book-cover {
    height: 250px;
    object-fit: cover;
    width: 100%;
    border-radius: 5px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-authors {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
    min-height: 1.5rem;
}

.book-year {
    color: #495057;
    font-size: 0.85rem;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
}

.loading-container {
    text-align: center;
    padding: 40px 0;
}

#loadingSpinner {
    display: none;
}

.d-none {
    display: none !important;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .book-cover {
        height: 200px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .search-container {
        padding: 0 15px;
    }
}

/* Estilos para tablets */
@media (min-width: 768px) and (max-width: 992px) {
    .book-cover {
        height: 220px;
    }
}