/* dark-mode.css - Sistema de Dark Mode para Moldov.xyz */

/* Variáveis CSS para Light Mode (padrão) */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333;
    --header-color: #444;
    --accent-color: #FFA726;
    --border-color: #eee;
    --meta-color: #777;
    --blockquote-border: #FFA726;
    --blockquote-color: #555;
    --shadow-color: rgba(0,0,0,0.1);
    --img-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --button-bg: #FFA726;
    --button-hover-bg: #FF9800;
}

/* Variáveis CSS para Dark Mode */
.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-color: #ffffff;
    --accent-color: #FFB74D;
    --border-color: #333;
    --meta-color: #aaa;
    --blockquote-border: #FFB74D;
    --blockquote-color: #ccc;
    --shadow-color: rgba(0,0,0,0.3);
    --img-shadow: 0 2px 8px rgba(0,0,0,0.3);
    --button-bg: #FFB74D;
    --button-hover-bg: #FFA726;
}

/* Botão Flutuante Simples */
.theme-button {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: var(--button-bg) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.theme-button:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
    background-color: var(--button-hover-bg) !important;
}

.theme-button:active {
    transform: scale(0.95) !important;
}

.theme-button .light-icon {
    display: block !important;
}

.theme-button .dark-icon {
    display: none !important;
}

.dark-mode .theme-button .light-icon {
    display: none !important;
}

.dark-mode .theme-button .dark-icon {
    display: block !important;
}

/* Aplicar variáveis aos elementos comuns de blog */
body {
    color: var(--text-color) !important;
    background-color: var(--bg-color) !important;
    transition: background-color 0.3s, color 0.3s !important;
}

a {
    color: var(--accent-color) !important;
    transition: color 0.3s !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--header-color) !important;
    transition: color 0.3s !important;
}

/* Se seus posts usam estas classes, elas serão estilizadas automaticamente */
.post-header, article header, .entry-header {
    border-bottom-color: var(--border-color) !important;
}

.post-meta, .entry-meta, .article-meta {
    color: var(--meta-color) !important;
}

blockquote {
    border-left-color: var(--blockquote-border) !important;
    color: var(--blockquote-color) !important;
}

img {
    box-shadow: var(--img-shadow) !important;
}

footer, .site-footer, .post-footer {
    border-top-color: var(--border-color) !important;
    color: var(--meta-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .theme-button {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .theme-button {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
}