/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

/* Navegação */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}

.navbar .logo:hover {
    color: #764ba2;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a.active {
    color: #667eea;
    font-weight: 600;
}

/* Container Principal */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.container.wide {
    max-width: 900px;
}

/* Tipografia */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

h3 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Formulário IMC */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #aaa;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Resultado IMC */
.resultado {
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resultado.mostrar {
    display: block;
}

.imc-valor {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.imc-categoria {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.imc-descricao {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cores para cada categoria IMC */
.abaixo-peso {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.peso-normal {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: white;
}

.sobrepeso {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #333;
}

.obesidade-1 {
    background: linear-gradient(135deg, #fab1a0, #e17055);
    color: white;
}

.obesidade-2 {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: white;
}

.obesidade-3 {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
}

/* Tabela IMC */
.tabela-imc {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.tabela-imc h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.tabela-imc table {
    width: 100%;
    border-collapse: collapse;
}

.tabela-imc td {
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 0.85rem;
    color: #555;
}

.tabela-imc tr:last-child td {
    border-bottom: none;
}

.tabela-imc td:first-child {
    font-weight: 600;
    color: #333;
}

.indicador {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.cor-abaixo { background: #0984e3; }
.cor-normal { background: #00b894; }
.cor-sobrepeso { background: #fdcb6e; }
.cor-obesidade1 { background: #e17055; }
.cor-obesidade2 { background: #d63031; }
.cor-obesidade3 { background: #6c5ce7; }

/* Cards de Artigos */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.article-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f0f2f5;
}

.article-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.article-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-card .read-more {
    display: inline-block;
    margin-top: 15px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Página de Artigo Individual */
.article-content {
    line-height: 1.8;
    color: #444;
}

.article-content h1 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.article-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.article-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.4rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content blockquote {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.highlight-box {
    background: linear-gradient(135deg, #55efc420, #00b89420);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 25px 0;
}

.highlight-box h4 {
    color: #00b894;
    margin-bottom: 10px;
}

.warning-box {
    background: linear-gradient(135deg, #ff767520, #d6303120);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 25px 0;
}

.warning-box h4 {
    color: #d63031;
    margin-bottom: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

/* Google AdSense Espaços */
.ad-container {
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.ad-space {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.ad-space-horizontal {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space-rectangle {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.ad-space-sidebar {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space-inline {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    max-width: 900px;
    margin: 30px auto 0 auto;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .imc-valor {
        font-size: 2.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-content h1 {
        font-size: 1.5rem;
    }

    .ad-space-horizontal {
        min-height: 60px;
    }

    .ad-space-rectangle {
        min-height: 200px;
    }
}
