/* Additional styles for book pages */Add commentMore actions
.books-overview {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.book-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.book-cover {
    height: 100%;
    min-height: 400px;
}

.placeholder-cover {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
}

.book-details {
    padding: 2rem;
}

.book-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.book-status {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.book-description p {
    margin-bottom: 1rem;
}

.book-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.feature ul {
    list-style: none;
}

.feature li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Individual Book Page */
.book-full {
    padding: 4rem 0;
    background-color: #fff;
}

.book-full-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.book-full-cover {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.book-full-details h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.book-section {
    margin-bottom: 2rem;
}

.book-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.character-item {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.character-item h4 {
    margin-bottom: 0.5rem;
}

.character-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.theme-item {
    background-color: #f5f5f5;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.quote {
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

@media screen and (max-width: 768px) {
    .book-item {
        grid-template-columns: 1fr;
    }
    
    .book-cover {
        min-height: 300px;
    }
    
    .book-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .book-full-container {
        grid-template-columns: 1fr;
    }
    
    .book-full-cover {
        height: 400px;
        max-width: 300px;
        margin: 0 auto;
    }
}


/* Prologue Page Styles */
.prologue-section {
    background-color: #fff;
    padding: 4rem 0;
}

.prologue-container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
}

.prologue-header {
    text-align: center;
    margin-bottom: 3rem;
}

.prologue-header h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.prologue-header p {
    color: var(--secondary-color);
    font-style: italic;
}

.prologue-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-body);
}

.prologue-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.prologue-content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.7;
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.book-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.book-nav-buttons {
    display: flex;
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    .prologue-content {
        font-size: 1rem;
    }
    
    .book-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Base list styling for consistent spacing */
.prologue-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Extra indentation for nested (child) lists */
.prologue-content ul ul {
    list-style-type: circle; /* or square for more contrast */
    padding-left: 2rem; /* add additional indent */
}

/* Book Excerpt Viewer Styles - Updated for two-column top, full-width bottom layout */
.book-full-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Top section with book cover and excerpt viewer side by side */
.book-top-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.book-full-cover {
    flex: 0 0 300px;
}

/* Excerpt viewer positioned as right column in top section */
#excerpt-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    max-height: 400px;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: var(--background-color, #f9f9f9);
    font-family: var(--font-body, serif);
}

#excerpt-text {
    flex: 1;
    margin: 0 1em;
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
}

#excerpt-viewer button {
    background-color: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Book details take full width below the top section */
.book-full-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    /* Stack vertically on mobile */
    .book-top-section {
        flex-direction: column;
    }
    
    #excerpt-viewer {
        flex-direction: column;
        align-items: stretch;
        max-height: none;
    }

    #excerpt-text {
        margin: 1em 0;
    }
}