/* ===== Bookshelf Container ===== */
.bookshelf-container {
    padding: 1.5rem 4rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
    width: 100%;
}

.book-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    max-height: 22vh;
}

.book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
}

.book-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1rem;
    }

    .bookshelf-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .book-item {
        max-height: none;
    }

    .bookshelf-container {
        padding: 1.5rem;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .bookshelf-container {
        padding: 1rem;
    }
}
