/* Reader Design System */
:root {
    --reader-bg: #ffffff;
    --reader-text: #1a1a1a;
    --reader-font-size: 18px;
    --reader-line-height: 1.6;
    --reader-max-width: 700px;
}

body.book-reader-active {
    background-color: var(--reader-bg);
    color: var(--reader-text);
    transition: all 0.3s ease;
}

.book-reader-container {
    max-width: var(--reader-max-width);
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.reader-header {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.reader-content {
    font-size: var(--reader-font-size);
    line-height: var(--reader-line-height);
    text-align: justify;
}

.reader-content p {
    margin-bottom: 1.5em;
}

/* Controls Overlay */
.reader-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.control-btn:hover {
    background: #e0e0e0;
}

/* Themes */
.theme-dark {
    --reader-bg: #121212;
    --reader-text: #e0e0e0;
}

.theme-sepia {
    --reader-bg: #f4ecd8;
    --reader-text: #5b4636;
}
