/*
Theme Name: Alone Complex
Theme URI: https://alonecomplex.cl
Author: JCOM
Description: Tema personalizado para Alonecomplex
Version: 1.1
Text Domain: mi-blog
*/

/* --- VARIABLES DE COLOR --- */
:root {
    --bg-dark: #121212;
    --text-light: #f4f4f4;
    --pastel-pink: #ffb3ba;
    --pastel-mint: #baffc9;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

/* Aplicar Montserrat a todos los títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px; /* Montserrat se ve mejor con las letras apenas un poco más juntas */
}

.container {
    max-width: 1200px; /* Más ancho para la grilla */
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER Y MENÚ --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #000;
    border-bottom: 2px solid var(--pastel-pink);
}

.site-header h1 a {
    color: var(--pastel-mint);
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.main-navigation a {
    font-family: 'Montserrat', sans-serif; /* <-- Fuente Menu superior */
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--pastel-pink);
}

/* --- SECCIÓN 1: HERO POSTS (4 Columnas) --- */
.hero-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.hero-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-title-box {
    background-color: var(--text-light);
    color: var(--bg-dark);
    padding: 15px;
    margin-top: -30px; /* Superpone la caja blanca sobre la imagen */
    margin-left: 10px;
    margin-right: 10px;
    z-index: 2;
}

.hero-title-box a {
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 18px;
}

/* --- SECCIÓN 2: CÍRCULOS DE CATEGORÍAS --- */
.category-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.circle a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--pastel-mint);
    font-weight: bold;
}

.circle-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #333; /* Color temporal hasta que pongas fotos */
    border: 3px solid var(--pastel-pink);
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.circle:hover .circle-img {
    transform: scale(1.1);
}

/* --- SECCIÓN 3: GRILLA MASONRY (Estilo Imagen 2) --- */
.masonry-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 15px;
    margin-bottom: 60px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.7; /* Oscurece un poco la foto para que el texto se lea */
}

.masonry-item:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}

.masonry-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.masonry-overlay a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 22px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.masonry-overlay a:hover {
    color: var(--pastel-pink);
}

/* --- ESTILOS PARA LA PÁGINA DE ARTÍCULO INDIVIDUAL (single.php) --- */

.single-post-container {
    max-width: 800px; /* Un ancho más estrecho que la grilla para facilitar la lectura */
    margin: 40px auto 80px auto;
}

.single-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-title {
    color: var(--pastel-mint);
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.single-meta {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.single-featured-image {
    margin-bottom: 40px;
    border-radius: 8px; /* Bordes redondeados para un toque moderno */
    overflow: hidden;
    border: 2px solid var(--pastel-pink); /* Un acento sutil con el rosado pastel */
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    line-height: 1.8;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Estilizar los subtítulos dentro del texto del artículo */
.single-content h2, 
.single-content h3, 
.single-content h4 {
    color: var(--pastel-pink);
    margin-top: 40px;
    margin-bottom: 15px;
}

/* Estilizar los enlaces dentro de los párrafos */
.single-content a {
    color: var(--pastel-mint);
    text-decoration: none;
    border-bottom: 1px dashed var(--pastel-mint);
    transition: all 0.3s;
}

.single-content a:hover {
    color: var(--pastel-pink);
    border-bottom-color: var(--pastel-pink);
}

/* Asegurar que las fotos dentro del post no se salgan del marco */
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid var(--pastel-mint);
    margin-top: 60px;
    font-size: 0.9rem;
}