* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #c0392b;
    --secondary-color: #2c3e50;
    --background-dark: #1a1a1a;
    --text-light: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}
body.book-reader-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-image: url('/assets/785ec0d9-d5fb-4946-8de7-3c1c3d631323');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
}
.book-reader-header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
}

/* ============================================================================
   READER CONTAINER - ANA LAYOUT
   ============================================================================ */

.reader-container {
    margin-top: 40px;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.book-cover-display {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
    justify-content: center;
}

.book-cover-left {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12px;
}
.book-cover-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.5),
        0 32px 64px rgba(0, 0, 0, 0.6);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-cover-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.5),
        0 24px 48px rgba(0, 0, 0, 0.6),
        0 48px 96px rgba(0, 0, 0, 0.7);
}
.book-cover-right {
    flex: 1;
    padding: 30px;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin: 0;
    max-height: 700px;
    overflow-y: auto;
}
.book-info {
    width: 100%;

}
.book-cover-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.book-cover-author {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.book-cover-translator,
.book-cover-editor {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.book-cover-translator i,
.book-cover-editor i {
    color: var(--primary-color);
    width: 16px;
}
.book-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 2rem 0;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}
.meta-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}
.book-cover-description {
    background: rgb(51 51 51 / 46%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    line-height: 1.7;
    font-size: 1rem;
    max-height: 200px;
    overflow-y: auto;
}
.book-publication-info {
    color: #ccc;
    font-size: 0.9rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.book-publication-info i {
    color: var(--primary-color);
}
.start-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
}
.start-reading-btn:hover {
    background: #a93226;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(192, 57, 43, 0.4);
    color: white;
}
.start-reading-btn i {
    font-size: 1.3rem;
}
body.book-reader-page {
    overflow-x: hidden;
    overflow-y: auto;
}
.book-reader {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    max-width: 1400px;
    min-height: 100vh;
    align-items: start;
    margin: 0 auto;
    padding-bottom: 100px;
    position: relative;
}
.reader-controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-light);
    position: fixed;
    top: 90px;
    left: calc((100vw - 1400px) / 2);
    width: 300px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
}
.reading-settings {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.font-family-selector {
    background: black;
    padding: 15px;
    border-radius: 8px;
}
.font-family-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 5px;
}
.font-family-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.font-family-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}
.font-family-select option {
    background: #2c3e50;
    color: white;
    padding: 8px;
}
.theme-selector {
    background: black;
    padding: 15px;
    border-radius: 8px;
}
.theme-selector-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 5px;
}
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background: transparent !important;
    color: var(--primary-color) !important;
    cursor: pointer;
    transition: var(--transition);
}
.theme-btn:hover,
.theme-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}
.font-controls {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    text-align: center;
}
.font-controls-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
.font-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.font-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: bold;
}
.font-btn:hover {
    background: var(--primary-color);
    color: white;
}
.font-size-indicator {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}
.navigation-controls {
    margin: 20px 0;
}
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 8px;
}
.nav-btn:hover {
    background: #a93226;
    transform: translateY(-1px);
    color: white;
}
.nav-btn:disabled,
.nav-btn-disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
}
.nav-btn:disabled:hover,
.nav-btn-disabled:hover {
    transform: none;
    background: #666;
}
.nav-buttons-row {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}
.nav-btn-prev,
.nav-btn-next {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
}
.page-counter {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    height: 40px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-library {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}
.back-to-library:hover {
    background: #a93226;
    transform: translateY(-2px);
    color: white;
}
.book-content {
    background: white;
    color: #333;
    margin: 40px auto;
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    width: 600px;
    max-width: 600px;
    min-height: 800px;
    border: 1px solid #ddd;
    justify-self: center;
}
.book-content h1,
.book-content h2,
.book-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.book-content h1 {
    font-size: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 2rem;
}
.book-content p {
    margin-bottom: 1.2rem;
    text-indent: 20px;
}
.book-content p:first-of-type {
    text-indent: 0;
}
.page-number-a4 {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 14px;
    color: #666;
    font-family: 'Georgia', serif;
}

.book-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
    object-fit: contain;
}

.search-panel {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-light);
    position: fixed;
    top: 90px;
    right: calc((100vw - 1400px) / 2);
    width: 300px;
    max-height: calc(100vh - 140px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.search-container {
    margin-bottom: 15px;
}
.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}
.search-input::placeholder {
    color: #bbb;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}
.readbox-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
}
.readbox-content {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    padding-top: 50px;
}
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #a93226;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 10px;
    border: 2px solid #a93226;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #000 #a93226;
}
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
.slide-up {
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}
@keyframes slideUp {
    to { transform: translateY(0); }
}
.lazy-target {
    min-height: 1px;
}
body.light-theme .book-content {
    background: white;
    color: #333;
    border-color: #ddd;
}
body.dark-theme .book-content {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #333;
}
body.dark-theme .book-content h1,
body.dark-theme .book-content h2,
body.dark-theme .book-content h3 {
    color: #c0392b;
}
body.sepia-theme .book-content {
    background: wheat;
    color: black;
    border-color: #c0392b;
}
body.sepia-theme .book-content h1,
body.sepia-theme .book-content h2,
body.sepia-theme .book-content h3 {
    color: #8b4513;
}
body.night-theme .book-content {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}
body.night-theme .book-content h1,
body.night-theme .book-content h2,
body.night-theme .book-content h3 {
    color: #c0392b;
}
.reading-mode-toggle {
    background: black;
    padding: 5px;
    border-radius: 8px;
}
.reading-mode-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.reading-mode-btn:hover {
    background: var(--primary-color);
    color: white;
}
.reading-mode-btn.active {
    background: var(--primary-color);
    color: white;
}
.reading-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}
body.reading-mode-active .reading-mode-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}
body.reading-mode-active .book-reader-header {
    z-index: 9997;
}
body.reading-mode-active .reader-controls,
body.reading-mode-active .search-panel {
    z-index: 9997;
}
body.reading-mode-active .book-content {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(1.02);
    transition: all 0.3s ease;
}
.reading-mode-exit {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.reading-mode-exit:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
body.reading-mode-active .reading-mode-exit {
    display: flex;
}
.mobile-config-btn {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
}
.mobile-config-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.mobile-config-btn.active {
    background: var(--primary-color);
    color: white;
}
@media (max-width: 768px) {
    .book-cover-display {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 15px;
        text-align: center;
    }
    
    .book-cover-left {
        flex: none;
        width: 100%;
        max-width: 250px;
    }
    
    .book-cover-right {
        flex: none;
        width: 100%;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    /* Belirli elementleri gizle */
    .book-cover-right .book-info > *:not(.start-reading-btn) {
        display: none !important;
    }
    
    .book-cover-right .book-meta-info,
    .book-cover-right .book-cover-description,
    .book-cover-right .book-publication-info {
        display: none !important;
    }
    
    /* Okumaya başla butonunu görünür yap */
    .book-cover-right .start-reading-btn {
        display: inline-flex !important;
        width: 100%;
        max-width: 250px;
        justify-content: center;
        margin: 20px auto 0;
    }
}
@media (max-width: 576px) {
   .book-reader {
       display: block;
       padding: 0;
       margin: 0;
       max-width: 100%;
   }
   
   .reader-container {
       padding: 0;
       margin: 0;
   }
   
   .book-content {
       background: white;
       color: #333;
       margin-top: 90px;
       margin-bottom: 10px;
       padding: 30px 20px 50px;
       border-radius: 6px;
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
       position: relative;
       font-family: 'Georgia', 'Times New Roman', serif;
       font-size: 15px;
       line-height: 1.6;
       text-align: justify;
       width: calc(100% - 20px);
       min-height: 60vh;
       border: 1px solid #ddd;
   }
   
   .search-panel {
       display: none;
   }
   
   /* Mobile Settings Button */
   .mobile-config-btn {
       display: flex;
       position: fixed;
       top: 90px;
       right: 15px;
       width: 45px;
       height: 45px;
       background: rgba(0, 0, 0, 0.9);
       border: 2px solid var(--primary-color);
       border-radius: 50%;
       color: var(--primary-color);
       font-size: 20px;
       cursor: pointer;
       z-index: 99;
       align-items: center;
       justify-content: center;
       transition: var(--transition);
   }
   
   .mobile-config-btn:hover,
   .mobile-config-btn.active {
       background: var(--primary-color);
       color: white;
       transform: scale(1.1);
   }
   
   /* Mobile Reader Controls Panel */
   .reader-controls {
       position: fixed;
       top: 145px;
       right: 15px;
       width: 300px;
       height: 450px;
       background: rgba(0, 0, 0, 0.9);
       padding: 20px;
       border-radius: 12px;
       border: 1px solid var(--border-color);
       box-shadow: 0 8px 25px var(--shadow-light);
       z-index: 100;
       overflow-y: auto;
       transform: translateX(100%);
       transition: transform 0.3s ease;
       left: calc((100vw - 900px) / 2);
   }
   
   .reader-controls.active {
       display: none;
   }
   
   /* Mobile Panel Close Button */
   .mobile-panel-close {
       display: block;
       position: absolute;
       top: 10px;
       right: 10px;
       width: 30px;
       height: 30px;
       background: transparent;
       border: 1px solid var(--primary-color);
       border-radius: 50%;
       color: var(--primary-color);
       font-size: 14px;
       cursor: pointer;
       align-items: center;
       justify-content: center;
   }
   
   .mobile-panel-close:hover {
       background: var(--primary-color);
       color: white;
   }
}

@media (max-width: 1100px) and (min-width: 577px) {
   .book-reader {
       display: block;
       padding: 0;
       margin: 0;
       max-width: 100%;
   }
   
   .reader-container {
       padding: 0 10px;
       margin: 0;
   }
   
   .book-content {
       background: white;
       color: #333;
       margin: 80px auto 80px;
       padding: 40px 30px 60px;
       border-radius: 8px;
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
       position: relative;
       font-family: 'Georgia', 'Times New Roman', serif;
       font-size: 16px;
       line-height: 1.7;
       text-align: justify;
       width: 90%;
       max-width: 500px;
       min-height: 70vh;
       border: 1px solid #ddd;
   }
   
   .search-panel {
       display: none;
   }
   
   /* Tablet Settings Button */
   .mobile-config-btn {
       display: flex;
       position: fixed;
       top: 90px;
       right: 20px;
       width: 50px;
       height: 50px;
       background: rgba(0, 0, 0, 0.9);
       border: 2px solid var(--primary-color);
       border-radius: 50%;
       color: var(--primary-color);
       font-size: 22px;
       cursor: pointer;
       z-index: 99;
       align-items: center;
       justify-content: center;
       transition: var(--transition);
   }
   
   .mobile-config-btn:hover,
   .mobile-config-btn.active {
       background: var(--primary-color);
       color: white;
       transform: scale(1.1);
   }
   
   /* Tablet Reader Controls Panel */
   .reader-controls {
       position: fixed;
       top: 150px;
       right: 20px;
       width: 320px;
       max-height: calc(100vh - 240px);
       background: rgba(0, 0, 0, 0.9);
       padding: 25px;
       border-radius: 12px;
       border: 1px solid var(--border-color);
       box-shadow: 0 8px 25px var(--shadow-light);
       z-index: 1000;
       overflow-y: auto;
       transform: translateX(100%);
       transition: transform 0.3s ease;
   }
   
   .reader-controls.active {
       display: block;
       transform: translateX(0);
   }
   
   .mobile-panel-close {
       display: block;
       position: absolute;
       top: 10px;
       right: 10px;
       width: 35px;
       height: 35px;
       background: transparent;
       border: 1px solid var(--primary-color);
       border-radius: 50%;
       color: var(--primary-color);
       font-size: 16px;
       cursor: pointer;
       align-items: center;
       justify-content: center;
   }
   
   .mobile-panel-close:hover {
       background: var(--primary-color);
       color: white;
   }
}

@media (max-width: 992px) {
   .navigation-controls {
       position: fixed;
       bottom: 0;
       left: 0;
       right: 0;
       background: rgba(0, 0, 0, 0.9);
       backdrop-filter: blur(15px);
       padding: 15px;
       border-top: 2px solid var(--primary-color);
       z-index: 100;
   }

   .nav-buttons-row {
       display: flex;
       gap: 10px;
       margin: 0;
       justify-content: center;
       align-items: center;
   }

   .nav-btn-prev,
   .nav-btn-next,
   .nav-btn-disabled {
       width: 50px;
       height: 50px;
       font-size: 18px;
       flex: none;
   }

   .page-counter {
       flex: 1;
       height: 50px;
       max-width: 150px;
       font-size: 16px;
       font-weight: 600;
   }

   .nav-btn,
   .back-to-library {
       display: none;
   }
}

@media (min-width: 993px) {
   .book-reader {
       display: grid;
       grid-template-columns: 300px 1fr 300px;
       gap: 20px;
       max-width: 1400px;
       min-height: 100vh;
       align-items: start;
       margin: 0 auto;
       padding-bottom: 100px;
       position: relative;
   }

   .reader-controls {
       background: rgba(0, 0, 0, 0.8);
       padding: 20px;
       border-radius: 12px;
       border: 1px solid var(--border-color);
       box-shadow: 0 8px 25px var(--shadow-light);
       position: fixed;
       top: 90px;
       left: calc((100vw - 1400px) / 2);
       width: 300px;
       max-height: calc(100vh - 140px);
       overflow-y: auto;
       z-index: 100;
       transform: translateX(0);
       transition: none;
       display: block;
   }

   .mobile-config-btn,
   .mobile-panel-close {
       display: none;
   }

   .book-content {
       background: white;
       color: #333;
       margin: 80px auto;
       padding: 60px 50px;
       border-radius: 8px;
       box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
       position: relative;
       font-family: 'Georgia', 'Times New Roman', serif;
       font-size: 16px;
       line-height: 1.8;
       text-align: justify;
       width: 700px;
       max-width: 700px;
       min-height: 800px;
       border: 1px solid #ddd;
       justify-self: center;
   }
}
.orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    color: var(--primary-color);
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.orientation-warning .rotate-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: rotate 2s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Landscape modda warning göster ve içeriği gizle */
@media screen and (orientation: landscape) and (max-width: 1100px) {
    .orientation-warning {
        display: flex !important;
    }
    
    .book-reader-container,
    .book-cover-display {
        display: none !important;
    }
}
.reading-mode-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.reading-mode-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.reading-mode-nav-prev {
    left: calc(50% - 350px);
}

.reading-mode-nav-next {
    right: calc(50% - 350px);
}

/* Mobil için daha büyük butonlar */
@media (max-width: 986px) {
    .reading-mode-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .reading-mode-nav-prev {
        left: 20px;
        position: relative;
    }
    
    .reading-mode-nav-next {
        position: relative;
        margin-left: 90px;
    }

    .reading-nav {
        position: relative;
        height: 90px;
        width: 95%;
        display: flex;
    }
}

/* Sadece okuma modunda görünür */
body:not(.reading-mode-active) .reading-mode-nav {
    display: none;
}