/**
 * Dark Mode Toggle Styles
 * Datei: assets/css/dark-mode.css
 */

.reader-tools-dark-mode-toggle {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4b5563;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9997;
}

.reader-tools-dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.reader-tools-dark-mode-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}

.reader-tools-dark-mode-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.reader-tools-dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .reader-tools-dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

body.dark-mode .reader-tools-dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@media (max-width: 768px) {
    .reader-tools-dark-mode-toggle {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

body.dark-mode .entry-content,
body.dark-mode article,
body.dark-mode .post-content,
body.dark-mode main {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f5f5f5;
}

body.dark-mode a {
    color: #60a5fa;
}

body.dark-mode a:hover {
    color: #93c5fd;
}

body.dark-mode code,
body.dark-mode pre {
    background-color: #2d2d2d;
    color: #e5e5e5;
}

body.dark-mode blockquote {
    border-left-color: #4b5563;
    color: #d1d5db;
}

body.dark-mode .reader-tools-reading-time {
    background-color: #2d2d2d !important;
    color: #e5e5e5 !important;
}