/* ===== VARIAVEIS E RESET ===== */
:root {
    --primary: #e11d48; /* Vermelho Assisteck */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

body { background: var(--bg-light); font-family: 'Inter', sans-serif; }

/* ===== HEADER DO BLOG ===== */
.blog-header {
    padding: 60px 20px 40px;
    background: #fff;
    text-align: center;
}
.container-title h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 10px;
}
.destaque { color: var(--primary); }
.linha-decorativa {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 10px;
}

/* ===== GRID DE POSTS ===== */
.blog-grid { padding: 40px 20px 80px; }
.container { max-width: 1200px; margin: 0 auto; }

.grid-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) { .grid-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-posts { grid-template-columns: repeat(3, 1fr); } }

/* ===== CARD DO POST ===== */
.post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.post-card:hover {
    transform: translateY(-10px);
    /* Brilho suave em vermelho no hover */
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.15);
    border-color: var(--primary);
}

.post-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-img img { transform: scale(1.1); }

.post-content { padding: 25px; }

.post-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.post-content h2 {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 800;
}

.post-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    transition: 0.3s;
}

.post-card:hover .read-more { letter-spacing: 1px; }

.post-card a { text-decoration: none; color: inherit; }

/* ===== ÁREA DE BUSCA E TÓPICOS (MELHORADA) ===== */
.search-container { 
    max-width: 650px; 
    margin: 0 auto; 
    padding: 0 20px; 
    margin-top: 20px
}

.search-form {
    display: flex;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px; /* Bordas mais suaves */
    overflow: hidden;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.1);
    transform: translateY(-2px);
}

.search-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-main);
    font-family: inherit;
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: #be123c; /* Vermelho um pouco mais escuro */
}

/* ===== AJUSTE DOS TÓPICOS (CHIPS) ===== */
.topics-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.topics-chips small {
    color: #475569; /* Tom de cinza azulado mais forte */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-right: 10px;
}

.chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 24px; /* Aumentado para dar o formato da imagem */
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
}

/* Efeito ao passar o mouse ou quando estiver ativo */
.chip:hover {
    background: #fecdd3; /* Rosa claro igual ao seu print */
    border-color: #fda4af;
    color: #1e293b;
    transform: translateY(-2px);
}

/* Estilo para o botão "Ver todos" */
.chip.clear {
    background: #f1f5f9;
    border-color: transparent;
    color: #475569;
}

.chip.clear:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Ajuste para o formulário não quebrar o layout */
.topics-chips form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    .search-form button {
        padding: 15px;
    }
}