/*
Theme Name: Círculo Invierno
Version: 3.0 - Dark Mode Final
*/

:root {
    --bg-crema: #F5F5DC;
    --text-negro: #1a1a1a;
    --sidebar-w: 240px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-crema);
    color: var(--text-negro);
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    display: flex;
    transition: background 0.3s, color 0.3s;
}

/* --- CLASE MODO OSCURO (Forzada) --- */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Ajustes de elementos en modo oscuro */
body.dark-mode .site-header { background-color: #121212 !important; border-color: rgba(255,255,255,0.1); }
body.dark-mode a { color: #e0e0e0 !important; }
body.dark-mode .logo-circulo { filter: invert(1) brightness(2); }
body.dark-mode #theme-toggle { border-color: #e0e0e0; color: #e0e0e0; }
body.dark-mode .grid-excerpt { color: #bbb; }

/* --- SIDEBAR --- */
.site-header {
    width: var(--sidebar-w);
    height: 100vh;
    position: fixed;
    padding: 30px 20px;
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.logo-circulo { width: 100%; max-width: 160px; height: auto; margin-bottom: 30px; }

/* Limpieza de puntos negros del menú */
.main-navigation ul, .filter-nav ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.main-navigation a, .filter-nav a {
    font-size: 10px;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    padding: 5px 10px;
    display: block;
}

.main-navigation a:hover, .filter-nav a:hover { background: #000; color: #fff !important; }
body.dark-mode .main-navigation a:hover { background: #fff; color: #000 !important; }

/* BOTÓN SELECTOR */
#theme-toggle {
    background: none;
    border: 1px solid #000;
    font-family: 'Roboto Mono';
    font-size: 9px;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: auto;
    width: fit-content;
    text-transform: uppercase;
}

.social-link { padding: 15px 0 0 10px; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 15px; }
.social-link .dashicons { font-size: 20px; }

/* --- GRID --- */
.site-main { margin-left: var(--sidebar-w); padding: 40px; flex-grow: 1; }
.grid-item { width: 31%; margin: 1%; float: left; margin-bottom: 40px; }
.grid-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.grid-item h2 { font-size: 11px; margin: 15px 0 5px; text-transform: uppercase; }
.grid-excerpt { font-size: 11px; opacity: 0.8; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 800px) {
    body { flex-direction: column; }
    .site-header { width: 100%; height: auto; position: relative; border-right: none; padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.1); }
    .site-main { margin-left: 0; padding: 20px; }
    .grid-item { width: 100% !important; float: none; }
}