/**
 * CINCEL.AR - Estilos para Vista de Categoría
 * Enfoque: Minimalismo Solemne
 */

.category-view-wrapper {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* HERO SECTION */
.category-hero {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px -12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.category-badge-label {
    display: inline-block;
    padding: 5px 14px;
    background: var(--cat-bg-soft);
    color: var(--cat-color);
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.category-title {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    color: #0f172a;
    font-weight: 800;
}

.category-description {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0;
    max-width: 650px;
}

.hero-stats {
    padding-left: 3rem;
    border-left: 1px solid #f1f5f9;
}

.stat-item { text-align: center; }
.stat-value { display: block; font-size: 3rem; font-weight: 900; color: #0f172a; line-height: 1; }
.stat-desc { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 1px; }

.solemn-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 4rem 0;
}

/* GRID DE PUBLICACIONES */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}

.post-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card-date { color: #94a3b8; }

.post-card-title {
    font-size: 1.5rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.25;
}

.post-card-title a { color: #1e293b; text-decoration: none; transition: color 0.2s; }
.post-card-title a:hover { color: var(--cat-color); }

.post-card-excerpt {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.post-card-footer { margin-top: auto; }

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1.5px solid #f1f5f9;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

/* ESTADOS VACÍOS */
.empty-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: #f8fafc;
    border-radius: 20px;
}

.empty-icon { font-size: 4rem; margin-bottom: 1.5rem; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .category-hero { flex-direction: column; padding: 2.5rem; text-align: center; }
    .hero-stats { border-left: none; border-top: 1px solid #f1f5f9; padding: 2rem 0 0 0; width: 100%; }
    .category-title { font-size: 2.25rem; }
    .posts-grid { grid-template-columns: 1fr; }
}