/* Container */
.book-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Book Card */
.book-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Cover Image */
.book-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Book Info */
.book-info {
    text-align: center;
    margin-top: 10px;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
    color: #333;
}

.book-author {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0077cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #005fa3;
}
