/* ============================================
   SEÇÃO: MAIS RECENTES --> ARQUIVO: cards-ce.css
   ALTERAÇÕES: 
   - Sombra aumentada
   - Efeito de clique adicionado
   - Animação de entrada no post
============================================ */

.posts-recentes-ce {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    /* Adicionado padding para acomodar o efeito hover */
    padding: 5px;
}

.post-item-recente {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* ALTERAÇÃO 2: Sombra padrão aumentada */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.post-item-recente:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ALTERAÇÃO 3: Efeito de clique - card afunda */
.post-item-recente:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* ALTERAÇÃO 4: Animação de "entrada" no post após clique */
.post-item-recente.clicking {
    animation: fadeIntoPost 0.4s ease-out forwards;
}

.post-link-recente {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-thumbnail-recente {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.post-thumbnail-recente img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-recente {
    padding: 18px;
}

.post-title-recente {
    font-size: 1.05em;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-link-recente:hover .post-title-recente {
    color: #2563eb;
}

.post-date-recente {
    font-size: 0.8em;
    color: #777;
}

/* ============================================
   PAGINAÇÃO
============================================ */

.pagination-ce {
    grid-column: 1 / -1;
    margin-top: 30px;
    text-align: center;
}

.pagination-ce .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-ce .page-numbers:hover,
.pagination-ce .page-numbers.current {
    background: #1e3a8a;
    color: #fff;
    border-color: #2563eb;
}

.no-posts-ce {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
}

/* ============================================
   RESPONSIVO
============================================ */

@media (max-width: 1024px) {
    .posts-recentes-ce {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-wrapper-ce {
        padding: 10px 50px;
    }
}

@media (max-width: 768px) {
    .page-title-ce {
        font-size: 2.2em;
    }
    
    .page-description-ce {
        font-size: 1em;
    }
    
    .section-title-ce {
        font-size: 1.5em;
    }

    /* Carrossel */
    .carousel-item {
        min-width: 100%;
    }

    .carousel-wrapper-ce {
        padding: 10px 40px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    /* Mais Recentes */
    .posts-recentes-ce {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .controle-emocional-page {
        padding: 30px 15px;
    }

    .page-title-ce {
        font-size: 1.9em;
    }

    .section-title-ce {
        font-size: 1.3em;
        gap: 8px;
    }

    .section-title-ce svg {
        width: 20px;
        height: 20px;
    }

    /* Carrossel */
    .carousel-content {
        padding: 16px;
    }

    .carousel-title {
        font-size: 1.05em;
    }

    .carousel-indicators {
        margin-top: 20px;
    }

    /* Recentes */
    .post-content-recente {
        padding: 16px;
    }

    .post-title-recente {
        font-size: 1em;
    }
}