/* BOOKS.CSS - Books page specific styles */

/* Featured Book Section */
.featured-book {
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
}

.featured-book .book-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 768px) {
    .featured-book .book-item {
        grid-template-columns: 350px 1fr;
    }
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Book Items */
.book-item {
    display: flex;
    flex-direction: column;
}

.book-cover {
    margin-bottom: 20px;
}

.cover-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 150%; /* 2:3 aspect ratio for book covers */
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cover-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-details h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #000;
}

.book-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.book-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.book-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.book-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.book-link:hover {
    background-color: #333;
}

.book-link.secondary {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.book-link.secondary:hover {
    background-color: #f5f5f5;
}
