/* css/blog.css */

/* Cabeçalho simples do Blog */
.blog-header {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.blog-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card do Post (Estilo IBM) */
.post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Imagem do Card */
.post-card-image-link {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-image-link img {
    transform: scale(1.05); /* Zoom suave na imagem */
}

/* Fallback se não tiver imagem */
.no-image {
    color: #ccc;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Conteúdo do Texto */
.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-content h3 {
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-card-content h3 a {
    color: var(--dark-bg);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.post-card-content h3 a:hover {
    color: var(--primary-color);
}

.post-card-content p {
    font-size: 0.95rem;
    color: #525252;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empurra o botão para o final */
    line-height: 1.5;
}

/* Botão Ler Mais */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    align-self: flex-start;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Estados de Erro e Loading */
.loading-text, .no-posts {
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    padding: 2rem;
}

.error-text {
    text-align: center;
    color: #da1e28; /* Vermelho IBM */
    grid-column: 1 / -1;
}