/*
Theme Name: Dagorret Theme
Theme URI: https://dagorret.com.ar
Author: Dagorret
Description: Tema personalizado basado en la maquetación Blade original.
Version: 1.0.2
*/

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
}

header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

header p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

nav.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.main-navigation li {
    position: relative;
    margin: 4px 0;
}

nav.main-navigation li ul.sub-menu {
    display: none;
    padding-left: 18px;
    margin-top: 4px;
}

nav.main-navigation li.open > ul.sub-menu {
    display: block;
}

.toggle-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.8rem;
    padding: 0 4px;
    margin-right: 4px;
    color: #666;
}

.toggle-btn:hover {
    color: #000;
}

/* Formato de Entradas */
.post-preview {
    margin-bottom: 35px;
}

.post-title {
    font-size: 1.4rem;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.post-title a {
    color: #111;
    text-decoration: none;
}

.post-title a:hover {
    color: #0066cc;
}

.post-meta {
    font-size: 0.85rem;
    color: #777;
}

.post-meta a {
    color: #555;
}

/* Bloques de Código */
pre, code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.88em;
}

pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-left: 4px solid #24292e;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    line-height: 1.45;
    color: #24292e;
    margin: 20px 0;
}

pre code {
    background: transparent;
    padding: 0;
    border: 0;
}

p code, li code {
    background-color: rgba(175, 184, 193, 0.2);
    color: #24292e;
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-size: 0.85em;
}

/* Navegación Post Anterior / Siguiente */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 20px 0;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    font-size: 0.9rem;
}

.nav-previous, .nav-next {
    max-width: 48%;
}

.post-navigation a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    text-decoration: underline;
}

/* Entradas Relacionadas */
.related-posts {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.related-posts h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #333;
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.related-posts a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.related-posts a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.related-date {
    color: #777;
    font-size: 0.8rem;
    margin-left: 6px;
}

/* Estilos Formulario de Comentarios */
#comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-respond {
    margin-top: 20px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.comment-form input[type="text"], 
.comment-form input[type="email"], 
.comment-form input[type="url"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.comment-form input[type="submit"] {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.comment-form input[type="submit"]:hover {
    background-color: #0066cc;
}

/* Disposición 3 Columnas Footer */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column .widget {
    margin-bottom: 20px;
}

.footer-column .widget-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #111;
    padding-bottom: 4px;
}

.footer-copyright {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Mejoras de Contraste para Accesibilidad 100% */
.post-meta, header p, .related-date {
    color: #595959;
}

nav a, .post-navigation a {
    color: #0056b3;
}

/* Ajustes finales para Accesibilidad 100% */
body {
    color: #111111;
}

.post-meta, header p, .related-date {
    color: #4a4a4a;
}

a, nav a, .post-navigation a {
    color: #004499;
}

.toggle-btn {
    min-width: 24px;
    min-height: 24px;
    color: #333;
}

/* Alineación Horizontal para el Menú Principal */
nav.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

nav.main-navigation li {
    margin: 0;
}

nav.main-navigation li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 8px 12px;
    z-index: 10;
    min-width: 150px;
}
