@import 'common.css';

.books-page {
    padding: 8rem 2rem 2rem;
    text-align: center;
}

.books-page h1 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: inherit;
}

.books-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
}

.book-item {
    max-width: 400px;
}

.book-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
    color: inherit;
}

.book-link:hover {
    transform: translateY(-10px);
}

.book-link:hover .book-title {
    color: var(--primary-color) !important;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.book-title {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: inherit !important;
    transition: color 0.3s ease;
}

.dark-mode .book-title {
    color: var(--text-color-dark) !important;
}

.light-mode .book-title {
    color: var(--text-color-light) !important;
}

@media (max-width: 768px) {
    .books-page h1 {
        font-size: 2.5rem;
    }

    .book-item {
        width: 90%;
    }
}