/* === ESTILOS DO BLOG === */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blog-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23blog-pattern)"/></svg>');
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Controles do Blog */
.blog-controles {
    background: #f8f9fa;
    padding: 40px 20px;
    border-bottom: 1px solid #dee2e6;
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #dee2e6;
    border-radius: 25px 0 0 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 20px;
    background: #667eea;
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.filtros-blog {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filtro-blog {
    padding: 12px 25px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.filtro-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filtro-blog.ativo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Layout do Blog */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Artigo em Destaque */
.artigo-destaque {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.artigo-destaque:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.artigo-destaque .artigo-imagem {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.artigo-destaque .artigo-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artigo-destaque:hover .artigo-imagem img {
    transform: scale(1.05);
}

.artigo-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artigo-conteudo {
    padding: 30px;
}

.artigo-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.categoria {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8em;
}

.data, .tempo-leitura {
    color: #666;
    display: flex;
    align-items: center;
}

.artigo-destaque h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    line-height: 1.2;
}

.artigo-destaque p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.artigo-autor {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.artigo-autor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.autor-nome {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

.autor-cargo {
    display: block;
    color: #666;
    font-size: 0.9em;
}

/* Container dos Artigos Normais */
.artigos-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.artigo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.artigo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.artigo-card .artigo-imagem {
    height: 180px;
    overflow: hidden;
}

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

.artigo-card:hover .artigo-imagem img {
    transform: scale(1.05);
}

.artigo-card .artigo-conteudo {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artigo-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
}

.artigo-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* Botões Ler Mais */
.btn-ler-mais {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    align-self: flex-start;
}

.btn-ler-mais:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
}

.page-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.page-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletter-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23newsletter-pattern)"/></svg>');
    pointer-events: none;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-content h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.newsletter-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1em;
    outline: none;
}

.newsletter-form button {
    padding: 15px 25px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 0 25px 25px 0;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: white;
    color: #667eea;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-content p {
        font-size: 1.1em;
    }
    
    .blog-hero {
        padding: 60px 15px;
    }
    
    .blog-controles {
        padding: 30px 15px;
    }
    
    .search-container {
        margin-bottom: 20px;
    }
    
    .filtros-blog {
        gap: 10px;
    }
    
    .filtro-blog {
        padding: 8px 16px;
        font-size: 0.8em;
    }
    
    .artigo-destaque .artigo-imagem {
        height: 200px;
    }
    
    .artigo-destaque h2 {
        font-size: 1.5em;
    }
    
    .artigo-conteudo {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 25px;
    }
    
    .paginacao {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .artigo-destaque .artigo-imagem {
        height: 160px;
    }
    
    .artigo-card .artigo-imagem {
        height: 150px;
    }
    
    .artigo-autor {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .newsletter-content h3 {
        font-size: 2em;
    }
    
    .newsletter-content p {
        font-size: 1em;
    }
}