﻿/* allposts.css - Estilos para a página "Todos os Posts" */

/* Reutiliza os mesmos estilos da página de categorias */
.categories-page {
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .page-header .section-title {
        font-size: 2rem;
        color: var(--cinza-escuro);
    }

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--verde-pastel);
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
}

.text-muted {
    color: var(--cinza-medio);
    font-size: 0.9rem;
}

/* Grid de Posts - MESMO ESTILO DO INDEX E CATEGORIES */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

    .post-card:hover {
        transform: translateY(-8px);
    }

.post-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

    .post-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .post-card-img:hover img {
        transform: scale(1.05);
    }

    .post-card-img .img-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--bege-escuro);
        font-size: 3rem;
        background: var(--bege-medio);
    }

.post-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--verde-pastel);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cinza-escuro);
}

.post-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--cinza-escuro);
    line-height: 1.4;
}

    .post-card-title a {
        color: var(--cinza-escuro);
        text-decoration: none;
    }

        .post-card-title a:hover {
            color: var(--verde-pastel);
        }

.post-excerpt {
    font-size: 0.95rem;
    color: var(--cinza-medio);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #bbb;
    border-top: 1px solid #f9f9f9;
    padding-top: 15px;
    margin-top: auto;
}

.post-link {
    color: var(--verde-pastel);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    text-decoration: none;
}

    .post-link:hover {
        text-decoration: underline;
    }

/* Paginação - MESMO ESTILO */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pagination-list li a,
    .pagination-list li span {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--bege-medio);
        border-radius: 4px;
        color: var(--cinza-escuro);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s;
    }

    .pagination-list li.active a,
    .pagination-list li.active span {
        background: var(--verde-pastel);
        border-color: var(--verde-pastel);
        color: white;
    }

    .pagination-list li a:hover {
        background: var(--bege-claro);
    }

/* Estado vazio */
.no-posts-alert {
    grid-column: 1 / -1;
    padding: 40px;
    background: white;
    border-radius: 12px;
    text-align: center;
    color: #999;
    border: 2px dashed var(--bege-medio);
}

/* Responsivo */
@media (max-width: 768px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
    }
}
