:root {
    --bg-color: #f9f5ed;
    --text-color: #2c3e50;
    --primary-color: #1a3a5f;
    --secondary-color: #8b5a2b;
    --accent-color: #5d8aa8;
    --divider-color: #d4af3780;
    --header-bg: linear-gradient(135deg, #1a3a5f 0%, #2c4d6e 100%);
}

/* Karanlık Mod */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e6e6e6;
    --primary-color: #8b5a2b;
    --secondary-color: #5d8aa8;
    --divider-color: #d4af37;
}

/* Temel Stiller */
body {
    font-family: 'Noto Serif', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

/* Navigasyon */
nav {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Kitap Başlık */
.book-header {
    background: var(--header-bg);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 1px;
}

.meta {
    margin-top: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Ana İçerik */
.book-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* Bölüm Navigasyon */
.chapter-nav {
    position: sticky;
    top: 5rem;
    align-self: start;
    padding: 1rem;
    border-right: 1px solid var(--divider-color);
    height: 100vh;
}

.chapter-nav h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
}

.chapter-nav li {
    margin-bottom: 0.8rem;
}

.chapter-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.chapter-nav a:hover {
    color: var(--accent-color);
}

/* Kitap İçeriği */
.book-content {
    max-width: 800px;
    margin: 0 auto;
}

.chapter {
    margin-bottom: 3rem;
}

.chapter h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

blockquote {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--primary-color);
}

blockquote footer {
    font-style: normal;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.divider {
    text-align: center;
    color: var(--divider-color);
    margin: 2rem 0;
    font-size: 1.5rem;
}

/* Okuma Ayarları */
.reading-settings {
    position: sticky;
    top: 5rem;
    align-self: start;
    padding: 1rem;
    border-left: 1px solid var(--divider-color);
    height: 100vh;
}

.settings-panel {
    background-color: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 5px;
}

.settings-panel h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.setting {
    margin-bottom: 1rem;
}

.setting label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.setting select {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#dark-mode {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .book-container {
        grid-template-columns: 1fr;
    }

    .chapter-nav, .reading-settings {
        display: none;
    }
}