/* Variáveis do Layout */
:root {
    /* Cores */
    --layout-bg: #fff;
    --layout-text: #333;
    --layout-text-light: #666;
    --layout-link: #333;
    --layout-link-hover: #1a237e;
    --layout-meta: #888;
    --layout-meta-icon: #1a237e;
    
    /* Tamanhos */
    --layout-grid-gap: 30px;
    --layout-thumbnail-large: 300px;
    --layout-thumbnail-small: 200px;
    --layout-title-large: 1.5rem;
    --layout-title-small: 1.2rem;
    --layout-text-size: 1rem;
    --layout-meta-size: 0.9rem;
    
    /* Espaçamentos */
    --layout-card-padding: 25px;
    --layout-title-margin: 0 0 15px 0;
    --layout-excerpt-margin: 0 0 20px 0;
    --layout-meta-gap: 20px;
    
    /* Sombras */
    --layout-card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --layout-card-shadow-hover: 0 6px 12px rgba(0,0,0,0.15);
    
    /* Bordas */
    --layout-card-radius: 12px;
}

/* Layout dos Cards de Posts */

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Posts em Destaque */
.featured-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Estrutura Base do Card */
.post-card,
.featured-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.post-card:hover,
.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Thumbnail/Imagem */
.post-card-thumbnail,
.featured-post-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.post-card-thumbnail {
    height: 200px;
}

.featured-post-thumbnail {
    height: 300px;
}

.post-card-thumbnail img,
.featured-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumbnail img,
.featured-post:hover .featured-post-thumbnail img {
    transform: scale(1.05);
}

/* Conteúdo do Card */
.post-card-content,
.featured-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Título */
.post-card-title,
.featured-post-title {
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-card-title {
    font-size: 1.2rem;
}

.featured-post-title {
    font-size: 1.5rem;
}

.post-card-title a,
.featured-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover,
.featured-post-title a:hover {
    color: #1a237e;
}

/* Resumo/Excerpt */
.post-card-excerpt,
.featured-post-excerpt {
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.post-card-excerpt {
    margin-bottom: 0;
}

.featured-post-excerpt {
    margin-bottom: 20px;
}

/* Meta Informações */
.post-meta,
.post-card-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
}

.post-meta i,
.post-card-meta i {
    margin-right: 5px;
    color: #1a237e;
}

/* Responsividade */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-posts {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .featured-post-thumbnail {
        height: 250px;
    }
    
    .post-card-thumbnail {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post-title {
        font-size: 1.3rem;
    }
    
    .post-card-title {
        font-size: 1.1rem;
    }
    
    .post-meta,
    .post-card-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .featured-post-thumbnail {
        height: 200px;
    }
    
    .post-card-thumbnail {
        height: 160px;
    }
}
