.book-details-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    box-sizing: border-box;
}

/* PDF Preview Hero Section */
.book-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}

/* PDF Previewer */
.pdf-preview-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.pdf-preview-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pdf-preview-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pdf-viewer-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    aspect-ratio: 8.5/11;
    max-height: 500px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Small Price Badge Overlay */
.price-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.price-badge-small {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-badge-small::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shimmer-small 4s infinite;
}

@keyframes shimmer-small {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.price-badge-small:hover {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.5);
}

.price-amount-small {
    font-size: 1rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.pdf-page-display {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pdf-page {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    transition: all 0.3s ease;
}

/* PDF Navigation Controls */
.pdf-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pdf-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pdf-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pdf-page-indicator {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Purchase CTA */
.pdf-purchase-cta {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.05) 0%, rgba(230, 53, 115, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(44, 60, 169, 0.1);
}

.purchase-message {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn-purchase {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--light-pink));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 60, 169, 0.3);
}

/* Book Info Section */
.book-info-section {
    padding-left: 2rem;
}

.book-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.book-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.4;
}

.book-description {
    margin-bottom: 2rem;
}

.book-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.book-highlights h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.book-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-highlights li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Quiz Connection Section */
.quiz-connection {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.quiz-connection .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-connection .section-description {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(44, 60, 169, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(44, 60, 169, 0.15);
    border-color: var(--primary-blue);
}

.chapter-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #8b5a3c, #d4a574);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(139, 90, 60, 0.3);
}

.quiz-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1rem;
}

.quiz-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-quiz {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.btn-quiz:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--light-pink));
    transform: translateY(-2px);
}

/* Book Impact Section */
.book-impact {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.05) 0%, rgba(230, 53, 115, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(44, 60, 169, 0.1);
}

.impact-content .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.impact-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(44, 60, 169, 0.08);
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 25px rgba(44, 60, 169, 0.12);
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.impact-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.impact-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Call to Action */
.call-to-action {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.call-to-action h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.call-to-action p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large,
.btn-secondary-large {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    box-shadow: 0 4px 20px rgba(44, 60, 169, 0.3);
}

.btn-primary-large:hover {
    background: linear-gradient(135deg, #9d6746, #e2b685);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(44, 60, 169, 0.4);
}

.btn-secondary-large {
    background: var(--background-card);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary-large:hover {
    background: var(--background-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

/* Price Callout */
/* Remove old price callout styles - no longer needed */

/* Back Navigation Section */
.back-navigation {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-navigation .btn-secondary-large {
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--background-card);
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.back-navigation .btn-secondary-large:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .book-hero {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .book-title {
        font-size: 2.5rem;
    }

    .book-info-section {
        padding-left: 1rem;
    }

    .price-badge {
        min-width: 180px;
        padding: 1.2rem 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .book-details-container {
        padding: 1rem;
    }

    .book-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .book-info-section {
        padding-left: 0;
        text-align: center;
    }

    .book-title {
        font-size: 2.2rem;
    }

    .book-subtitle {
        font-size: 1.2rem;
    }

    .price-callout {
        justify-content: center;
        margin: 1.5rem 0;
    }

    .price-badge {
        transform: rotate(-1deg);
        min-width: 160px;
    }

    .price-badge:hover {
        transform: rotate(0deg) scale(1.03);
    }

    .pdf-viewer-container {
        max-height: 400px;
        max-width: 300px;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .book-hero {
        padding: 1.5rem 1rem;
    }

    .book-title {
        font-size: 1.8rem;
    }

    .book-subtitle {
        font-size: 1.1rem;
    }

    .book-description p {
        font-size: 1.1rem;
    }

    .pdf-purchase-cta {
        padding: 1rem;
    }

    .purchase-message {
        font-size: 0.9rem;
    }
    
    .price-badge-overlay {
        top: 8px;
        left: 8px;
    }

    .price-badge-small {
        padding: 0.25rem 0.5rem;
        min-width: 45px;
    }

    .price-amount-small {
        font-size: 0.8rem;
    }
}