/*
Theme Name: Mainqué Spoke
Theme URI: https://mainque.gob.ar
Author: Municipalidad de Mainqué
Author URI: https://mainque.gob.ar
Description: Tema hijo para los Spokes (áreas municipales) - Hereda del Master Theme pero con estilo limpio
Template: mainque-ecosystem
Version: 1.0.0
License: GPLv2 or later
Text Domain: mainque-spoke
*/

/* ============================================
   ESTILOS PARA SPOKES (ÁREAS MUNICIPALES)
   Sobrescribe los estilos del tema padre
   ============================================ */

/* Resetear estilos del Hub */
.hub-container,
.hub-hero,
.hub-grid,
.hub-card,
.hub-card-link,
.card-image,
.card-content,
.btn-contextual,
.area-section,
.area-title,
.area-posts {
    all: unset;
}

/* Layout general - limpio y centrado */
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #021500;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.site {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.site-header {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 2px solid #c5ebfe;
    margin-bottom: 2rem;
}

.site-header .main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* IMPORTANTE: El menú usa fondo verde, por lo que el texto debe ser blanco */
.site-header .main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* CORREGIDO: El texto debe mantenerse blanco durante el hover */
.site-header .main-navigation a:hover {
    color: #ffffff !important;
    background-color: #6b4333;
}

/* Títulos */
h1 {
    font-size: 2rem;
    color: #38b550;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    color: #6b4333;
    margin-top: 0;
}

h3 {
    font-size: 1.25rem;
    color: #6b4333;
}

/* Posts (entradas) */
article {
    background: #ffffff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
}

article .entry-meta {
    font-size: 0.85rem;
    color: #6b4333;
}

article .entry-content {
    color: #021500;
}

article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Enlaces */
a {
    color: #38b550;
    text-decoration: none;
}

a:hover {
    color: #6b4333;
    text-decoration: underline;
}

/* Botones */
.wp-element-button,
button,
input[type="submit"] {
    background-color: #38b550;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #2d8f3e;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #c5ebfe;
    text-align: center;
    font-size: 0.85rem;
    color: #6b4333;
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .site {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    article {
        padding: 1rem;
    }
}

/* ============================================
   ESTILOS DEL MENÚ DE NAVEGACIÓN (Network Menu)
   ============================================ */

.main-navigation {
    background-color: #38b550;
    padding: 1rem 0;
}

.network-menu {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.network-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.network-menu li {
    margin: 0;
}

.network-menu a {
    color: #ffffff;
    text-decoration: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.network-menu a:hover,
.network-menu a:focus {
    color: #ffffff;
    background-color: #6b4333;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DEL MENÚ (Mobile)
   ============================================ */

@media (max-width: 768px) {
    .main-navigation {
        padding: 0.75rem 0;
    }

    /* Botón de hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin: 0 auto;
    }

    .hamburger {
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
    }

    .menu-toggle-label {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        margin-top: 0.25rem;
    }

    /* Ocultar el menú por defecto */
    .network-menu-container {
        display: none;
        margin-top: 1rem;
    }

    /* Mostrar el menú cuando está activo */
    .network-menu-container.is-open {
        display: block;
    }

    .network-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .network-menu a {
    color: #ffffff;
    text-decoration: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
    }
}

/* ============================================
   OCULTAR EL BOTÓN DE HAMBURGUESA EN DESKTOP
   ============================================ */

/* Desktop: El botón está oculto por defecto */
@media (min-width: 769px) {
    .menu-toggle,
    .menu-toggle-label {
        display: none;
    }
}
