.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1c;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(119, 255, 51, 0.4);
}

.book-cover {
    width: 208px !important;
    height: 313px !important;
    min-width: 208px !important;
    min-height: 313px !important;
    max-width: 208px !important;
    max-height: 313px !important;
    margin: 1.5rem auto 0;
    overflow: hidden;
    background: #202022;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subtle overlay on cover */
.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #252527 0%, #151517 100%);
    padding: 1.5rem;
    text-align: center;
}

.book-cover-placeholder span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.book-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(to bottom, #1a1a1c, #161618);
}

.book-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.book-title a {
    text-decoration: none;
    color: #f0f0f0;
    transition: all 0.3s ease;
    display: inline-block;
}

.book-card:hover .book-title a {
    color: #77ff33;
}

.book-author {
    font-size: 0.8rem;
    color: #77ff33;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.8;
}

.book-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a0a0a5;
    flex-grow: 1;
    font-weight: 400;
}

.book-description p {
    margin: 0;
}

@media (max-width: 768px) {
    .bookshelf-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover {
        width: 180px !important;
        height: 271px !important;
        min-width: 180px !important;
        min-height: 271px !important;
        max-width: 180px !important;
        max-height: 271px !important;
    }
}