@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* --- 1. BASE E RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. NAVBAR E HERO (IGUAIS EM TODAS) --- */
.navbar ul {
    display: flex;
    justify-content: center;
    background-color: #2c3e50;
    list-style: none;
    padding: 10px 0;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.hero-section {
    background-color: #2c3e50;
    background-image: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
    width: 100%;
}

.hero-section h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-section p {
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.navbar a:hover { color: #3498db; }

/* --- 3. ESTILO ESPECÍFICO DA PÁGINA DE COMPARAÇÃO --- */
.container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.comparador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.seletor-tipo select, .coluna input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    margin-top: 8px;
}

.btn-executar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 16px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

/* --- 4. ESTILO ESPECÍFICO DA PÁGINA DE DICAS (CARDS) --- */
.lista-noticias {
    max-width: 900px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-horizontal {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e6ed;
    transition: 0.3s;
}

.imagem-container { flex: 0 0 300px; height: 200px; }
.imagem-container img { width: 100%; height: 100%; object-fit: cover; }

/* --- 5. FOOTER PADRONIZADO --- */

/* --- 4. FOOTER (UNIVERSAL) --- */
footer {
    background-color: #1a252f;
    padding: 60px 0 30px 0;
    margin-top: auto; /* Mágica para o footer não subir */
    color: #bdc3c7;
    width: 100%;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

footer ul { 
    list-style: none; 
    flex: 1; 
    min-width: 200px; 
    margin-bottom: 30px;
    padding: 0 10px; /* Evita que as colunas grudem */
}

footer h3 { color: white; margin-bottom: 20px; text-transform: uppercase; font-size: 1.1rem; }
footer a { color: #bdc3c7; text-decoration: none; margin-bottom: 8px; display: inline-block; transition: 0.3s; }
footer a:hover { color: #3498db; transform: translateX(5px); }

/* --- 6. MOBILE (PARA TODAS AS PÁGINAS) --- */
@media (max-width: 768px) {
    .navbar ul { flex-direction: column; align-items: center; }
    .hero-section h1 { font-size: 1.8rem; }
    
    /* Ajuste da Comparação */
    .comparador-grid { grid-template-columns: 1fr !important; }
    .container { margin: 10px; padding: 20px; }

    /* Ajuste das Dicas */
    .card-horizontal { flex-direction: column; }
    .imagem-container { width: 100%; height: 180px; }
    
    .footer-content { flex-direction: column; text-align: center; }
    /* --- 6. MOBILE RESPONSIVO --- */

    .footer-content { flex-direction: column; text-align: center; }
    .card-horizontal { flex-direction: column; }
    .imagem-container { width: 100%; height: 180px; }
}


.container, .lista-noticias {
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 20px;
}


.comparador-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }


.card-horizontal {
    display: flex;
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e6ed;
}

/* Remove o sublinhado de todos os links que envolvem cards */
.container-analises a, 
.lista-noticias a {
    text-decoration: none;
    color: inherit; /* Faz o link herdar a cor do texto original, evitando o azul padrão */
}/* Container que centraliza e organiza */
.container-principal {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* O Card de Matéria */
.card-materia {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #eee;
}

.materia-link { text-decoration: none; color: inherit; }

.card-materia:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Imagem da Matéria */
.materia-imagem {
    flex: 0 0 350px;
    height: 250px;
    position: relative;
}

.materia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categoria-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
}

/* Texto da Matéria */
.materia-texto {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.materia-texto .subtitulo {
    color: #e74c3c;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.materia-texto h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.materia-texto p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 20px;
}

.materia-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #bdc3c7;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.leia-mais { color: #3498db; font-weight: bold; }

/* Responsivo para Celular */
@media (max-width: 768px) {
    .card-materia { flex-direction: column; }
    .materia-imagem { flex: none; width: 100%; height: 200px; }
}