/**
 * Tarjetas de POSTS/NOTICIAS - Estilo Blog
 * Se aplica en: home.php, category.php, tag.php, search.php
 */

/* ==========================================================================
   LAYOUT ESPECÍFICO PARA PÁGINA DE NOTICIAS (home.php)
   ========================================================================== */

/* Header de noticias - ancho completo */
.news-header {
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    background: transparent;
    margin-bottom: 2rem;
}

.news-header .page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-header .archive-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout en dos columnas para noticias */
.news-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.news-main-content {
    min-width: 0; /* Evita overflow en grid */
}

.news-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.news-sidebar .widget-area {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* Grid para posts/noticias */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta individual de post - ESTILO BLOG */
.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Imagen de la tarjeta de post */
.post-card__image {
    position: relative;
    padding-top: 56.25%; /* Proporción 16:9 */
}

.post-card__image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta de post */
.post-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card .entry-header {
    margin-bottom: 1rem;
}

.post-card .entry-meta {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.post-card .entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.post-card .entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card .entry-title a:hover {
    color: #e67e22;
}

.post-card .entry-summary {
    color: #495057;
    line-height: 1.6;
    flex-grow: 1;
    margin: 1rem 0;
}

.post-card .entry-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.post-card .entry-footer .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Responsivo para layout de noticias */
@media (max-width: 1024px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .news-header .page-title {
        font-size: 2rem;
    }
    
    .news-header .archive-description {
        font-size: 1rem;
    }
}

/* Responsivo para posts */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card__content {
        padding: 1.2rem;
    }
    
    .post-card .entry-title {
        font-size: 1.1rem;
    }
} 