﻿/* Tập tin: WebCafebookApi/wwwroot/css/ChiTietSachView.css */

.book-detail-card {
    background-color: var(--cf-white);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(78, 52, 46, 0.08);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 2.5rem;
}

.book-cover-container {
    padding: 1rem;
    background-color: var(--cf-cream);
    border-radius: 12px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.book-cover-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2), -1px 0 2px rgba(255,255,255,0.5); /* Hiệu ứng gáy sách 3D */
    transition: transform 0.4s ease;
}

    .book-cover-img:hover {
        transform: translateY(-5px) scale(1.02);
    }

.rent-box-card {
    background-color: #fcf9f2;
    border-radius: 12px;
    border: 1px solid rgba(111, 78, 55, 0.1);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.book-tabs {
    background-color: var(--cf-white);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--cf-light-gray);
}

    .book-tabs .nav-link {
        color: var(--cf-text);
        font-weight: 600;
        border: none;
        border-bottom: 3px solid transparent;
        padding: 1rem 1.5rem;
        transition: all 0.3s ease;
    }

        .book-tabs .nav-link.active, .book-tabs .nav-link:hover {
            color: var(--cf-orange);
            background-color: rgba(229, 122, 59, 0.05);
            border-bottom-color: var(--cf-orange);
        }

.description-truncated p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description-expanded p {
    display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 767.98px) {
    .book-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

        .book-tabs .nav-link {
            white-space: nowrap;
        }

        .book-tabs::-webkit-scrollbar {
            display: none;
        }

    .book-cover-img {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}
