﻿.book-details {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}



.book-header {
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .breadcrumb-item a:hover {
        color: #5568d3;
    }

.book-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .book-badges .badge {
        padding: 8px 16px;
        font-size: 0.9rem;
        font-weight: 600;
    }

.book-main-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2d3748;
    line-height: 1.3;
}

.book-cover-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.book-cover-large {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.book-cover-container:hover .book-cover-large {
    transform: scale(1.05);
}

.book-cover-container:hover .cover-overlay {
    opacity: 1;
}

.book-cover-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    color: #cbd5e0;
}

.book-info-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
}

.info-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    color: #718096;
    font-weight: 600;
    font-size: 0.95rem;
}

    .info-label i {
        margin-left: 8px;
        color: #667eea;
    }

.info-value {
    color: #2d3748;
    font-weight: 600;
    text-align: left;
}

.price-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: none;
}

    .price-item .info-label,
    .price-item .info-value {
        color: white;
    }

.price-value {
    font-size: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.book-description {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
}

.description-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

.book-gallery {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7fafc;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.admin-info-section .alert {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.book-actions {
    margin-top: 30px;
}

.book-sidebar .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.book-sidebar .card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

.book-sidebar .card-body {
    padding: 20px;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    padding: 15px 20px;
    border-radius: 8px;
}

.nav-btn-prev {
    right: 20px;
}

.nav-btn-next {
    left: 20px;
}

#imageCounter {
    font-size: 1rem;
    padding: 10px 20px;
}

@media (max-width: 992px) {
    .book-details {
        padding: 20px;
    }

    .book-main-title {
        font-size: 1.8rem;
    }

    .book-cover-placeholder {
        height: 400px;
    }

    .book-info-card {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .book-main-title {
        font-size: 1.5rem;
    }

    .book-cover-placeholder {
        height: 350px;
    }

    .info-title,
    .section-title {
        font-size: 1.1rem;
    }

    .gallery-image-wrapper {
        height: 150px;
    }

    .book-sidebar {
        margin-top: 30px;
    }

    .nav-btn {
        padding: 10px 15px;
    }

    .nav-btn-prev {
        right: 10px;
    }

    .nav-btn-next {
        left: 10px;
    }
}

@media (max-width: 576px) {
    .book-details {
        padding: 15px;
    }

    .book-main-title {
        font-size: 1.3rem;
    }

    .book-cover-placeholder {
        height: 300px;
    }

    .book-info-card,
    .book-description,
    .book-gallery {
        padding: 15px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-value {
        text-align: right;
    }

    .gallery-image-wrapper {
        height: 120px;
    }
}
