/* WiseLeaf Perfect Horizontal Book Cards */
/* Book covers with horizontal content layout - MORE CONTENT than journals */

/* FULL-WIDTH HORIZONTAL BOOK CARD - STACK VERTICALLY */
.book-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    
    /* HORIZONTAL: Book Cover LEFT + More Content RIGHT */
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 240px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    
    /* Force vertical stacking */
    clear: both !important;
    float: none !important;
}

/* Ensure books list container stacks cards vertically */
.books-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
}

.book-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    border-color: #0c4a60 !important;
}

/* LEFT SECTION: Book Cover */
.book-image {
    /* Book cover dimensions */
    width: 160px !important;
    min-width: 160px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    order: 1 !important;
    
    /* Center the book cover perfectly */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Clean book cover area */
    background: #f9fafb !important;
    border-right: 1px solid #e5e7eb !important;
    padding: 20px !important;
}

/* Remove book-cover styles since we're not using theme covers anymore */

/* RIGHT SECTION: Book Content & Buttons - MORE SPACE */
.book-content {
    flex: 1 !important;
    order: 2 !important;
    padding: 28px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    
    /* More vertical spacing for book content */
    gap: 14px !important;
}

/* Book Title - Prominent */
.book-title {
    font-family: 'Merriweather', serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
}

/* Book Author - Clear Attribution */
.book-author {
    color: #0c4a60 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin: 0 0 12px 0 !important;
    font-style: italic !important;
}

/* Book Description - More Space for Details */
.book-description {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    
    /* Allow more lines for book descriptions */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Book Meta Information - Rich Details */
.book-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
    margin: 0 0 18px 0 !important;
}

.book-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

.book-meta-item i {
    color: #0c4a60 !important;
    font-size: 0.8rem !important;
}

/* Book Action Buttons - Professional */
.book-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: auto !important;
}

.book-btn {
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.book-btn.primary {
    background: #0c4a60 !important;
    color: white !important;
    border-color: #0c4a60 !important;
}

.book-btn.primary:hover {
    background: #1a5a70 !important;
    border-color: #1a5a70 !important;
    transform: translateY(-2px) !important;
}

.book-btn:not(.primary) {
    background: transparent !important;
    color: #0c4a60 !important;
    border-color: #0c4a60 !important;
}

.book-btn:not(.primary):hover {
    background: #0c4a60 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .book-card {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .book-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 180px !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .book-content {
        padding: 24px !important;
    }
    
    .book-title {
        font-size: 1.15rem !important;
    }
    
    .book-actions {
        justify-content: center !important;
    }
    
    .book-btn {
        flex: 1 !important;
        justify-content: center !important;
        min-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .book-meta {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .book-actions {
        flex-direction: column !important;
    }
    
    .book-btn {
        width: 100% !important;
    }
}