/* Book Page Specific Styles */
.book-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.8;
}

.book-content h2,
.book-content h3,
.book-content h4,
.book-content h5 {
    color: #fff;
    margin-top: 1.5em;
}

.book-content h2 {
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.book-content ul,
.book-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.book-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.book-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.book-content strong {
    color: #fff;
}

.code-block {
    background: #000;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: monospace;
    color: var(--accent-green);
    margin: 20px 0;
    white-space: pre-wrap;
    overflow-x: auto;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    /* Ensure it handles potential overlap nicely */
    box-sizing: border-box;
    margin-top: 0;
    /* Reset margin since it is fixed */
}

/* Add padding to the bottom of book content so footer doesn't obscure text */
.book-content {
    margin-bottom: 100px;
    /* Space for the footer */
}

.chapter-meta {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.comparison-table th {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    font-weight: 600;
    text-align: left;
}

.comparison-table strong {
    color: #fff;
}

@media (max-width: 768px) {
    .book-content {
        padding: 20px;
    }
}