/* Generated CSS from Flutter Theme - theme_provider.dart */
/* Import Google Fonts - Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #FFFFFF; /* Flutter backgroundColor */
    color: #3E2B23; /* Flutter textColor */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Color Variables - Real Flutter Theme Colors */
:root {
    --primary-color: #5E3D37;        /* Coffee Brown */
    --secondary-color: #D8C0AD;    /* Rose Beige */
    --background-color: #FFFFFF;  /* Pure White */
    --text-color: #3E2B23;              /* Dark Cocoa */
    --highlight-yellow: #F5C047;  /* Highlight Yellow */
    --cta-green: #4A9C8B;                /* CTA Green */
    --nav-background: #FFF8F6;                      /* Navigation Background */
    --primary-light: #D8C0AD;      /* Use secondary as light variant */
    --primary-dark: #2A1D17;                        /* Darker version of primary */
}

/* Layout Structure */
.main-content {
    flex: 1;
    padding-top: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Navigation Header (BaseScreen CustomNavigationBar) */
.navigation-header {
    background-color: var(--nav-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation-bar {
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--secondary-color);
}

.nav-cart .cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-cart .cart-link:hover {
    background-color: var(--secondary-color);
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.headline-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Typography - Based on Flutter TextTheme with Playfair Display */
.headline-large {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.headline-medium {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--cta-green);
    font-family: 'Playfair Display', serif;
}

.headline-small {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cta-green);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.title-medium {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.title-small {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Playfair Display', serif;
}

.body-large {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.body-medium {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

/* Layout Components */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    padding: 12px 0;
    margin-bottom: 12px;
}

.section-content {
    padding: 0 12px;
}

.quote-container {
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #F5F1ED 100%);
    border-radius: 16px;
    text-align: center;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(94, 61, 55, 0.15);
    border: 1px solid rgba(94, 61, 55, 0.2);
}

/* Images and Media */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    justify-items: center;
    margin: 24px 0;
}

.image-item {
    max-width: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Footer (BaseScreen Footer) */
.site-footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--secondary-color);
    margin-top: auto;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    text-align: center;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-email {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.payment-methods,
.compliance-logos {
    margin-top: 1rem;
}

.payment-logo,
.compliance-logo {
    max-height: 50px;
    max-width: 200px;
    margin: 0.5rem;
}

.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
}

.footer-copyright p {
    color: var(--text-color);
    font-size: 0.875rem;
}

/* Contact Page Specific */
.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* Delivery Page Specific */
.delivery-content {
    max-width: 800px;
    margin: 0 auto;
}

.delivery-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
}

.delivery-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.delivery-section p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Privacy Page Specific */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
}

.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-section p {
    line-height: 1.8;
    color: var(--text-color);
}

.privacy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Return Policy Page Specific */
.return-policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.return-policy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
}

.return-policy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.return-policy-section p {
    line-height: 1.8;
    color: var(--text-color);
}

.return-policy-section em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

.return-policy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.return-policy-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Tutorial Steps (How To Use Page) */
.tutorial-step {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.step-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.step-image {
    flex: 0 0 230px;
    max-width: 230px;
}

.step-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
    min-width: 300px;
}

.step-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--cta-green);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-line;
}

/* Info Box for Returning Users */
.info-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1.5px solid var(--highlight-yellow);
}

.info-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.info-bonus {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cta-green);
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--cta-green);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Tutorial Steps */
@media (max-width: 768px) {
    .step-container {
        flex-direction: column;
        text-align: center;
    }
    
    .step-image {
        flex: none;
        max-width: 100%;
    }
    
    .step-content {
        min-width: auto;
    }
    
    .cta-section {
        padding: 1rem;
    }
}

/* FAQ (Questions Page) Styles */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-details {
    background: var(--background-color);
}

.faq-question {
    padding: 1rem 1.5rem;
    background: var(--background-color);
    color: var(--cta-green);
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

.faq-question::before {
    content: '+';
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cta-green);
    transition: transform 0.3s ease;
}

.faq-details[open] .faq-question::before {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--background-color);
    border-top: 1px solid var(--secondary-color);
}

.faq-answer p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-line;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact Section in Questions Page */
.contact-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.contact-email-link {
    color: var(--cta-green);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: var(--primary-color);
}

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 2rem 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.p-8 { padding: 8px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--cta-green);
}

.btn-secondary:hover {
    background-color: #3D8573;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .container {
        padding: 12px;
    }
    
    .headline-large { font-size: 2rem; }
    .headline-medium { font-size: 1.75rem; }
    .title-large { font-size: 1.25rem; }
    
    .section {
        margin-bottom: 2rem;
    }
    
    .quote-container {
        padding: 16px 20px;
        margin: 24px 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .headline-large { font-size: 1.75rem; }
    .headline-medium { font-size: 1.5rem; }
    .title-large { font-size: 1.125rem; }
    
    .offer-text {
        font-size: 12px;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .offer-banner,
    .navigation-header,
    .site-footer {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .quote-container {
        background-color: #f5f5f5;
        box-shadow: none;
    }
}

/* Special highlight for highlighted yellow sections */
.highlight {
    background-color: var(--highlight-yellow);
    padding: 2px 4px;
    border-radius: 4px;
}

/* BookGridDetailed - Book Grid Section Styles */
.book-grid-section {
    margin: 3rem 0;
    padding: 0 16px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 8px;
    padding-bottom: 20px;
}

/* DetailedBookGridItem - Book Card Styles */
.book-card {
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 700px; /* Standard height matching Flutter */
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.book-card.in-progress {
    opacity: 0.7;
    filter: grayscale(50%);
    cursor: default;
}

.book-card.in-progress:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin: 16px;
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.book-image-additional {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.book-image-additional img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* In Progress Banner (diagonal) */
.in-progress-banner {
    position: absolute;
    top: 25px;
    right: -80px;
    width: 250px;
    height: 45px;
    background-color: #f44336;
    color: white;
    text-align: center;
    line-height: 45px;
    font-size: 18px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.book-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.book-tag {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border: 1px solid var(--primary-dark);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.book-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
    max-height: 2.6em; /* ~2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Playfair Display', serif;
}

.book-card.in-progress .book-title {
    color: var(--primary-dark);
    opacity: 0.6;
}

.book-age {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.book-description {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-color);
    flex: 1;
    overflow: hidden;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* Maximum 5 lines */
}

.book-card.in-progress .book-description {
    opacity: 0.6;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.book-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
}

.book-price.strikethrough {
    text-decoration: line-through;
    text-decoration-color: rgba(244, 67, 54, 0.7);
    text-decoration-thickness: 2px;
    opacity: 0.6;
}

.book-details-btn {
    background-color: var(--cta-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.book-details-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
}

.book-details-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Image cycling on hover */
.book-card:hover .book-image-additional img {
    opacity: 1;
}

/* Responsive grid adjustments */
@media (max-width: 1300px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        height: 750px; /* More height for narrow layouts */
    }
    
    .book-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .book-details-btn {
        width: 100%;
        text-align: center;
    }
    
    .book-price {
        text-align: center;
    }
}

@media (min-width: 450px) and (max-width: 560px) {
    .book-card {
        height: 750px; /* More height for problematic narrow layouts */
    }
}

/* Book Detail Page Layout */
.book-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.book-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Two-column layout for screens wider than 1000px */
@media (min-width: 1000px) {
    .book-detail-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }
    
    .book-detail-left-column {
        width: 600px;
        flex-shrink: 0;
    }
    
    .book-detail-right-column {
        flex: 1;
        min-width: 0;
    }
}

.book-detail-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-detail-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin-bottom: 24px;
}

.book-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.book-detail-image-container.in-progress-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    z-index: 1;
}

.child-examples-section {
    width: 100%;
    text-align: center;
}

.child-examples-hint {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
}

.example-child-placeholder {
    background-color: var(--nav-background);
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    padding: 32px 16px;
    margin-bottom: 16px;
}

.example-note {
    color: var(--primary-color);
    font-style: italic;
    margin: 0;
}

.browse-button-container {
    margin-top: 16px;
}

.btn-browse {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-browse:hover {
    background-color: var(--primary-dark);
}

.book-detail-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.book-detail-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.book-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.new-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.progress-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.book-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.book-tag {
    padding: 8px 16px;
    background-color: var(--nav-background);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.book-detail-short-description {
    margin-bottom: 24px;
}

.book-detail-short-description p {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-dark);
    line-height: 1.6;
    margin: 0;
}

.book-detail-long-description {
    margin-bottom: 24px;
}

.book-detail-long-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.recommendation-section,
.age-recommendation-section {
    background-color: var(--nav-background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.recommendation-item,
.age-recommendation-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recommendation-icon,
.age-icon {
    font-size: 1.5rem;
}

.recommendation-text,
.age-text {
    font-weight: 600;
    color: var(--primary-color);
}

.book-detail-actions-section {
    margin-top: 32px;
}

.price-section {
    margin-bottom: 16px;
}

.book-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.btn-create-book {
    display: inline-block;
    background-color: var(--cta-green);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.3s ease;
}

.btn-create-book:hover {
    background-color: #3A7A6A;
}

.btn-create-book:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive adjustments for book detail page */
@media (max-width: 999px) {
    .book-detail-container {
        padding: 16px;
    }
    
    .book-detail-title {
        font-size: 2rem;
    }
    
    .book-detail-short-description p {
        font-size: 1.125rem;
    }
}

@media (max-width: 600px) {
    .book-detail-title {
        font-size: 1.75rem;
    }
    
    .book-detail-short-description p {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-create-book {
        text-align: center;
    }
}