/* wp-content/themes/baolecat/assets/css/blog-archive.css */

/* High-contrast editorial layout */
.blog-archive-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #111;
}

.archive-header {
    border-bottom: 6px solid #111;
    padding-bottom: 2rem;
    margin-bottom: 3.5rem;
}

.archive-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.archive-description {
    font-size: 1.25rem;
    color: #555;
    margin-top: 1rem;
    max-width: 800px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem 2rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #111;
    padding-bottom: 2rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    overflow: hidden;
    aspect-ratio: 3/2;
    background-color: #f4f4f4; /* Fallback for no image */
}

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

.post-thumbnail:hover img {
    transform: scale(1.03);
}

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

.entry-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.75rem;
}

.entry-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.entry-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: #555;
}

.entry-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-top: auto; /* Pushes summary to bottom if titles vary in length */
}

/* Pagination */
.navigation.pagination {
    margin-top: 4rem;
    border-top: 6px solid #111;
    padding-top: 2rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a {
    color: #111;
    text-decoration: none;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    border-color: #111;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .archive-title {
        font-size: 2.5rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
}