/*
 * Plugin Name: WP Recent Posts Widget
 * Description: Estilos inspirados no TechTudo para postagens recentes.
 * Version: 1.1
 * Author: Manus AI
 */

.wp-recent-posts-widget {
    font-family: "Open Sans", Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

.wp-recent-posts-widget h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.wp-recent-posts-widget h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #f8b133; /* Cor característica do TechTudo */
}

.wp-recent-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.wp-recent-posts-item {
    display: flex;
    align-items: flex-start;
    width: calc(50% - 15px);
    box-sizing: border-box;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: transform 0.2s ease;
}

.wp-recent-posts-item:hover {
    transform: translateY(-2px);
}

.wp-recent-posts-image {
    flex-shrink: 0;
    margin-right: 20px;
    width: 140px; /* Tamanho maior para assemelhar-se ao TechTudo */
}

.wp-recent-posts-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wp-recent-posts-content {
    flex-grow: 1;
}

.wp-recent-posts-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.wp-recent-posts-content h3 a {
    text-decoration: none;
    color: #000;
}

.wp-recent-posts-content h3 a:hover {
    color: #f8b133;
}

.wp-recent-posts-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .wp-recent-posts-item {
        width: 100%;
    }
    
    .wp-recent-posts-image {
        width: 100px;
    }
    
    .wp-recent-posts-image img {
        height: 70px;
    }
    
    .wp-recent-posts-content h3 {
        font-size: 16px;
    }
}
