/* Custom styles for the book catalog */

/* Adjust the main content to account for fixed navbar */
body {
    padding-top: 56px; /* Height of the navbar */
}

/* Search form styles */
#searchForm {
    margin: 20px auto;
}

/* Loader styles */
#loader {
    display: none;
}

/* Book card styles */
.book-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    margin-bottom: 20px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-weight: bold;
    margin-bottom: 10px;
    height: 60px;
    overflow: hidden;
}

.book-author {
    color: #6c757d;
    margin-bottom: 8px;
    min-height: 20px;
}

.book-year {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Modal styles */
.modal-book-cover {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

.modal-book-title {
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-book-details {
    margin-bottom: 15px;
}

.modal-book-details dt {
    color: #6c757d;
}

.modal-book-details dd {
    margin-bottom: 10px;
}

.no-results {
    text-align: center;
    padding: 40px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book-cover {
        height: 150px;
    }
    
    .book-title {
        height: auto;
        font-size: 0.95rem;
    }
}