/* Book flip cards */
.book-card {
    perspective: 1000px;
    margin-bottom: 25px;
    cursor: pointer;
}

.book-card-inner {
    position: relative;
    width: 100%;
    min-height: 180px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.book-card.flipped .book-card-inner {
    transform: rotateY(180deg);
}

.book-card-front,
.book-card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.book-card-front {
    background: #faf8f5;
    border-left: 4px solid #B22222;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 180px;
    overflow: hidden;
}

.book-cover-image {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    color: #999;
    font-style: italic;
    background: #e6d7c3;
    overflow: hidden;
}

.book-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card-front .book-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #5a3e2b;
    margin-bottom: 8px;
}

.book-card-front .book-author {
    font-size: 1em;
    color: #8a7a6a;
    margin-bottom: 15px;
}

.book-card-front .flip-hint {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

.book-card-back {
    background: #f0e6dc;
    border-left: 4px solid #5a3e2b;
    transform: rotateY(180deg);
    min-height: 180px;
    display: flex;
    align-items: center;
    padding: 20px;
}

.book-card-back p {
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}
