/* Book Detail Page Styles */

.book-detail-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.book-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.book-cover-large {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.book-cover-large img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.book-meta-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.book-meta-box h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.meta-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-item strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 80px;
}

.purchase-options {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.purchase-options h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.purchase-options .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    text-align: center;
}

.purchase-options .btn:last-child {
    margin-bottom: 0;
}

.book-main-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.book-description-section {
    margin-bottom: 3rem;
}

.book-description-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.book-description-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 1rem;
}

.table-of-contents {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.table-of-contents h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
}

.toc-list > li {
    counter-increment: toc-counter;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.toc-list > li::before {
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #e74c3c;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.toc-list ul {
    list-style: disc;
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    color: #5a6c7d;
}

.toc-list ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.endorsements-section {
    margin-bottom: 3rem;
}

.endorsements-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.endorsement {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e74c3c;
}

.endorsement-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    margin-bottom: 1rem;
}

.endorsement-author {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.author-bio-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.author-bio-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.author-bio-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: start;
}

.author-bio-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-text h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.author-bio-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 1rem;
}

.text-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.text-link:hover {
    color: #c0392b;
}

.related-content {
    padding: 2rem;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 12px;
}

.related-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.related-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .book-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-sidebar {
        position: relative;
        top: 0;
    }

    .author-bio-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-bio-image {
        margin: 0 auto;
    }

    .related-links {
        flex-direction: column;
    }

    .related-links .btn {
        width: 100%;
    }
}
