/* ==========================================================================
   1. REINICIOS Y ESTILOS BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fdf2f8; /* Fondo rosado muy clarito */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. ENCABEZADO (BANNER GAMER PERFECTO Y LIMPIO)
   ========================================================================== */
.hero-section {
    background-image: url('banner.png'); 
    background-size: 100% 100%; /* Estira la imagen perfectamente de borde a borde */
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 2.2 / 1; /* Mantiene la proporción exacta de tu dibujo */
    position: relative;
    border-bottom: 4px dashed #ff99cc;
}

/* Oculta los textos y los botones repetidos para que solo se vea tu imagen limpia */
.hero-top-text, .hero-main, .banner-nav {
    display: none; /* ¡Adiós a los botones amontonados de la imagen! */
}

/* ==========================================================================
   3. ESTRUCTURA DE 3 COLUMNAS (GRID)
   ========================================================================== */
.container {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Diseño de las tarjetas comunes (Cajitas rosadas) */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid #ffe6f2;
    box-shadow: 0 3px 6px rgba(255, 102, 178, 0.08);
}

.card-title {
    background-color: #ff99cc;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border: 1px solid #ffccdf;
}

/* ==========================================================================
   4. COLUMNA IZQUIERDA (PERFIL, REDES, LEVEL)
   ========================================================================== */
.profile-box {
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    object-fit: cover;
    border: 4px solid #ffb3d9;
    margin: 0 auto 15px auto;
}

.profile-text {
    font-size: 0.85rem;
    color: #555;
    text-align: left;
}

/* Caja de Búsqueda */
.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    flex: 1;
    padding: 6px;
    border: 2px solid #ffccdf;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-search {
    background-color: #ff66b2;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Iconos de Redes Sociales */
.social-icons {
    display: flex;
    justify-content: space-around;
    font-size: 1.4rem;
}

.social-icon {
    background-color: #ffe6f2;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffb3d9;
}

.social-icon:hover {
    background-color: #ffb3d9;
}

/* Barra de Progreso Level Up */
.progress-bar-container {
    background-color: #f1f1f1;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    border: 1px solid #ffccdf;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    background-color: #ff66b2;
    height: 100%;
    width: 70%; 
}

/* ==========================================================================
   5. COLUMNA CENTRAL (CONTENIDO Y POSTS)
   ========================================================================== */
.featured-post .card-title-featured {
    background-color: #ff66b2;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 6px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-image-main {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.featured-post h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.post-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ffe6f2;
    padding-bottom: 10px;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 20px;
}

.btn-pink {
    background-color: #ff66b2;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Etiquetas de categoría de los posts */
.category-text {
    font-weight: bold;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 3px;
    color: white;
    text-transform: uppercase;
}

.REFLEXIÓN { background-color: #ff99cc; }
.ANÁLISIS { background-color: #4ac; }
.REALIDAD { background-color: #f6b; }
.category-text.small { font-size: 0.6rem; }

/* Sección: Entradas Recientes (Rejilla Inferior) */
.recent-posts-title {
    background-color: #ff99cc;
    color: white;
    font-weight: bold;
    padding: 6px;
    border-radius: 4px;
    margin: 30px 0 15px 0;
    text-align: center;
    font-size: 0.9rem;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.recent-post-card {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.recent-post-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.recent-post-card h3 {
    font-size: 0.85rem;
    margin: 5px 0;
    flex: 1; 
}

.recent-post-date {
    font-size: 0.75rem;
    color: #aaa;
}

/* ==========================================================================
   6. COLUMNA DERECHA (NAVEGACIÓN, LABELS, DIARIO)
   ========================================================================== */
.nav-list, .archive-list {
    list-style: none; 
}

.nav-list li, .archive-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #ffccdf;
    font-size: 0.85rem;
}

.archive-list li {
    display: flex;
    justify-content: space-between;
    color: #666;
}

/* Nube de etiquetas */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    background-color: #ffe6f2;
    color: #ff66b2;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 0.75rem;
    border: 1px solid #ffccdf;
}

/* Caja de Contador de visitas */
.visitor-counter {
    text-align: center;
}

.hearts-row { font-size: 1.1rem; }

.counter-digits {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 7px;
}

.counter-digits span {
    background-color: #fff;
    border: 1px solid #ffb3d9;
    padding: 3px 7px;
    font-weight: bold;
    border-radius: 3px;
    color: #ff66b2;
    font-size: 0.85rem;
}

/* ==========================================================================
   7. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.blog-footer {
    background-color: #0d0d0d;
    color: #ffb3d9;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    margin-top: 40px;
}