/* Variáveis da Front Page */
:root {
    /* Cores */
    --front-bg: #fff;
    --front-text: #333;
    --front-text-light: #666;
    --front-link: #333;
    --front-link-hover: #1a237e;
    --front-meta: #888;
    --front-meta-icon: #1a237e;
    --front-pagination-bg: #f5f5f5;
    --front-pagination-text: #333;
    --front-pagination-active-bg: #1a237e;
    --front-pagination-active-text: #fff;
    --front-pagination-hover-bg: #e0e0e0;
    
    /* Tamanhos */
    --front-container-width: 1200px;
    --front-title-large: 1.5rem;
    --front-title-small: 1.2rem;
    --front-text-size: 1rem;
    --front-meta-size: 0.9rem;
    --front-thumbnail-large: 300px;
    --front-thumbnail-small: 200px;
    
    /* Espaçamentos */
    --front-container-padding: 0 20px;
    --front-content-margin: 40px 0;
    --front-grid-gap: 30px;
    --front-card-padding: 25px;
    --front-title-margin: 0 0 15px 0;
    --front-excerpt-margin: 0 0 20px 0;
    --front-meta-gap: 20px;
    --front-pagination-margin: 40px 0;
    --front-pagination-gap: 5px;
    --front-pagination-padding: 8px 16px;
    
    /* Sombras */
    --front-card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --front-card-shadow-hover: 0 6px 12px rgba(0,0,0,0.15);
    
    /* Bordas */
    --front-card-radius: 12px;
    --front-pagination-radius: 4px;
}

/* Estilos da Página Inicial */
.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Área de Conteúdo */
.blog-content {
    width: 100%;
    margin: 40px 0;
}

/* Posts em Destaque */
.featured-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.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%;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.featured-post-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.featured-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.featured-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: #1a237e;
}

.featured-post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    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 {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.post-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.post-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #1a237e;
}

.post-card-excerpt {
    color: #666;
    margin-bottom: 0px;
    line-height: 1.6;
    flex: 1;
}

/* Meta informações dos posts */
.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;
}

/* Paginação */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background: #1a237e;
    color: #fff;
}

/* Responsividade */
@media (max-width: 1200px) {
    .blog-container {
        padding: 0 30px;
    }
}

@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;
    }
    
    .blog-container {
        padding: 0 20px;
    }
    
    .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;
    }
} 