﻿/* WebCafebookApi/wwwroot/css/ThuVienSachView.css */

.library-header-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--cf-cream) 0%, #EFEBE5 100%);
    border-radius: 16px;
    border: 1px solid rgba(111, 78, 55, 0.1);
    position: relative;
    overflow: hidden;
}

    .library-header-section::before {
        content: "menu_book";
        font-family: 'Material Symbols Outlined';
        position: absolute;
        font-size: 10rem;
        color: rgba(111, 78, 55, 0.03);
        top: -10px;
        right: -10px;
        transform: rotate(10deg);
    }

.book-filter-card {
    background-color: var(--cf-white);
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 24px rgba(78, 52, 46, 0.08);
    top: 90px;
}

    .book-filter-card .card-header {
        background-color: var(--cf-dark-brown);
        color: var(--cf-white);
        border-bottom: none;
        padding: 1.2rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }

.book-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

    .book-input-group .material-symbols-outlined {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 12px;
        color: var(--cf-brown);
        font-size: 1.2rem;
        pointer-events: none;
    }

.book-input, .book-select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1.5px solid var(--cf-light-gray);
    border-radius: 10px;
    background-color: var(--cf-light-gray);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--cf-text);
}

    .book-input:focus, .book-select:focus {
        outline: none;
        background-color: var(--cf-white);
        border-color: var(--cf-orange);
        box-shadow: 0 0 0 4px rgba(210, 125, 45, 0.15);
    }

.book-product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    background: var(--cf-white);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .book-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(78, 52, 46, 0.12);
        border-color: rgba(210, 125, 45, 0.2);
    }

.book-product-img-wrap {
    aspect-ratio: 2/3; /* Tỷ lệ vàng cho Bìa Sách */
    overflow: hidden;
    position: relative;
    background-color: var(--cf-cream);
    padding: 10px; /* Tạo hiệu ứng viền cho sách */
}

.book-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2); /* Hiệu ứng gáy sách */
    transition: transform 0.6s ease;
}

.book-product-card:hover .book-product-img {
    transform: scale(1.05);
}

.book-product-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .book-filter-card {
        margin-bottom: 2rem;
        position: static;
    }
}
