/* Okuma Seçenekleri */
.reading-options {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #fff;
    padding: 12px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.reading-options:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.reading-options button {
    background: none;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reading-options button::after {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.reading-options button:hover::after {
    opacity: 1;
    visibility: visible;
}

.reading-options button:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    transform: scale(1.1);
}

.reading-options button:active {
    transform: scale(0.95);
}

.reading-options button i {
    font-size: 20px;
}

/* İlerleme Çubuğu */
.reading-progress {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Karanlık Mod */
body.dark-mode {
    background: #1a1a1a;
    color: #e4e4e4;
}

body.dark-mode .story-container,
body.dark-mode .story-header,
body.dark-mode .story-content,
body.dark-mode .comments-section,
body.dark-mode .reading-options {
    background: #2d2d2d;
    color: #e4e4e4;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

body.dark-mode .story-description,
body.dark-mode .comment-content,
body.dark-mode .chapter-content,
body.dark-mode .story-text {
    color: #e4e4e4;
}

body.dark-mode .reading-options button {
    color: #e4e4e4;
}

body.dark-mode .reading-options button:hover {
    background: #3d3d3d;
}

body.dark-mode .font-family-selector select {
    background: #2d2d2d;
    color: #fff;
    border-color: #444;
}

body.dark-mode .chapter {
    background: #3d3d3d;
    color: #e4e4e4;
}

body.dark-mode .chapter:hover {
    background: #4d4d4d;
}

body.dark-mode header {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode nav a {
    color: #e4e4e4;
}

body.dark-mode .mobile-nav {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .mobile-nav a {
    color: #e4e4e4;
}

body.dark-mode .reading-progress {
    background: #444;
}

/* Tema Geçiş Animasyonu */
body, 
body.dark-mode,
.story-container,
.story-header,
.story-content,
.comments-section,
.reading-options,
header,
.mobile-nav {
    transition: all 0.3s ease;
}

/* Tema Değiştirme Butonu */
.theme-toggle {
    position: relative;
}

.theme-toggle i {
    transition: transform 0.5s ease;
}

body.dark-mode .theme-toggle .fa-sun {
    display: block;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Tam Ekran Modu */
.story-content:fullscreen {
    background: #fff;
    padding: 2rem;
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    line-height: 1.8;
    display: block;
    color: #333;
}

.story-content:fullscreen .chapter-content,
.story-content:fullscreen .story-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.story-content:fullscreen h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.story-content:fullscreen p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.story-content:fullscreen .chapters-list {
    display: none;
}

.story-content:fullscreen .ad-container {
    display: none;
}

/* Karanlık Mod - Tam Ekran */
@media (prefers-color-scheme: dark) {
    .story-content:fullscreen {
        background: #1a1a1a;
        color: #fff;
    }

    .story-content:fullscreen .chapter-content,
    .story-content:fullscreen .story-text {
        color: #fff;
    }

    .story-content:fullscreen h2 {
        color: #fff;
    }

    .story-content:fullscreen p {
        color: #fff;
    }
}

/* Mobil - Tam Ekran */
@media (max-width: 768px) {
    .story-content:fullscreen {
        padding: 1rem;
    }

    .story-content:fullscreen .chapter-content,
    .story-content:fullscreen .story-text {
        padding: 1rem;
    }

    .story-content:fullscreen h2 {
        font-size: 1.5rem;
    }

    .story-content:fullscreen p {
        font-size: 1.1rem;
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .reading-options {
        bottom: 80px;
        right: 50%;
        transform: translateX(50%);
        padding: 10px;
    }

    .reading-options:hover {
        transform: translateX(50%) translateY(-2px);
    }

    .reading-options button {
        width: 40px;
        height: 40px;
    }

    .reading-options button::after {
        display: none;
    }

    .font-family-selector {
        display: none; /* Mobilde gizle */
    }

    .reading-progress {
        top: 80px;
    }
}

/* Animasyonlar */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Sesli Okuma Butonları */
.text-to-speech-toggle.active {
    color: var(--primary-color);
    background: #f0f0f0;
}

.text-to-speech-toggle.active i {
    animation: pulse 2s infinite;
}

.stop-reading {
    color: #e74c3c;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.stop-reading.visible {
    transform: scale(1);
    opacity: 1;
}

.stop-reading:hover {
    background: #fee7e7 !important;
    color: #c0392b;
} 