﻿.books-hero,
.book-detail-hero {
    padding: 4.5rem 0 3.5rem;
}

.books-list-section {
    min-height: 360px;
}

.book-card {
    overflow: hidden;
    border: 1px solid rgba(28, 88, 98, 0.12);
    border-radius: 1.25rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 12px 36px rgba(31, 41, 55, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 122, 114, 0.26);
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.10);
}

.book-card-cover-link,
.book-card-title a,
.book-card-action {
    color: inherit;
    text-decoration: none;
}

.book-card-cover {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(245, 247, 251, 0.92);
}

.book-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: .75rem;
}

.book-card-body {
    padding: 1.3rem;
}

.book-card-label {
    display: inline-block;
    margin-bottom: .6rem;
    font-size: .78rem;
    font-weight: 700;
    color: #287A72;
}

.book-card-title {
    margin-bottom: .7rem;
    font-size: 1.12rem;
    line-height: 1.8;
}

.book-card-statement {
    margin-bottom: .65rem;
    font-weight: 700;
}

.book-card-description {
    margin-bottom: 1rem;
    font-size: .93rem;
    line-height: 1.9;
    opacity: .78;
}

.book-card-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 800;
    color: #287A72;
}

.empty-books-state,
.book-not-found,
.book-content-card {
    padding: 2rem;
    border: 1px solid rgba(28, 88, 98, 0.12);
    border-radius: 1.25rem;
    background: var(--bs-body-bg, #fff);
}

.book-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2.5rem;
    font-size: .9rem;
}

.book-breadcrumb a {
    color: #287A72;
    text-decoration: none;
}

.book-detail-cover-wrap {
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 40px rgba(31, 41, 55, .08);
}

.book-detail-cover {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 1rem;
}

.book-detail-intro h1 {
    margin-bottom: 1rem;
    line-height: 1.65;
}

.book-detail-statement {
    margin-bottom: .85rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.book-detail-description {
    max-width: 780px;
    line-height: 2;
    opacity: .84;
}

.book-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.book-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(28, 88, 98, 0.10);
}

html[data-theme="dark"] .book-card,
html[data-theme="dark"] .empty-books-state,
html[data-theme="dark"] .book-not-found,
html[data-theme="dark"] .book-content-card {
    border-color: rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
}

html[data-theme="dark"] .book-card-cover,
html[data-theme="dark"] .book-detail-cover-wrap {
    background: rgba(255, 255, 255, .05);
}

@media (max-width: 767.98px) {
    .books-hero,
    .book-detail-hero {
        padding: 3rem 0 2.5rem;
    }

    .book-detail-intro {
        text-align: center;
    }

    .book-detail-actions {
        justify-content: center;
    }
}
