
/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Aviso Importante */
.aviso-importante {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Conteúdo Principal */
.main-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Seção de Artigos */
.articles-section {
    padding: 2rem;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.article-grid {
    display: grid;
    gap: 2rem;
}

.article-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-header {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 1.5rem;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-content {
    padding: 1.5rem;
}

.article-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    background: #3498db;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.read-more:hover {
    background: #2980b9;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.widget-header {
    background: #34495e;
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.widget-content {
    padding: 1.5rem;
}

/* Calculadora Widget */
.calculator-widget {
    text-align: center;
}

.calculator-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.calculator-link {
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s;
}

.calculator-link:hover {
    background: #229954;
}

/* Estilos da Calculadora de IMC */
.imc-calculator {
    padding: 1.5rem;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    text-align: left;
}

.imc-calculator label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.imc-calculator input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.imc-calculator button {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.imc-calculator button:hover {
    background-color: #2980b9;
}

#imc-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    min-height: 50px; /* Para manter o layout estável */
}

.imc-result-normal { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.imc-result-low { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.imc-result-high { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Últimas Pesquisas */
.research-list {
    list-style: none;
}

.research-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.research-item:last-child {
    border-bottom: none;
}

.research-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.research-journal {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Estilos para Abas de Treino */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: bold;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.treino-content {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 10px;
}

/* Estilo para o Conteúdo Completo (Artigos e Recursos) */
/* Estilo para o Conteúdo Completo (Artigos e Recursos) */
.articles-section > div[id$="-completo"] {
    /* O estilo inline já define display:none, background e padding */
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.articles-section > div[id$="-completo"] h2 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.articles-section > div[id$="-completo"] h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.articles-section > div[id$="-completo"] p {
    margin-bottom: 1rem;
}

/* Estilo para as Tabelas de Treino (Responsividade e Design) */
.articles-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    overflow-x: auto; /* Garante que a tabela seja rolável em telas pequenas */
    display: block; /* Necessário para overflow-x funcionar */
}

.articles-section thead {
    background: #3498db;
    color: white;
}

.articles-section th, .articles-section td {
    padding: 0.75rem;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.articles-section tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.articles-section tbody tr:hover {
    background-color: #e9e9e9;
}

/* Estilo para Listas de Suplementos */
.articles-section ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1rem;
}

.articles-section ul li {
    margin-bottom: 0.5rem;
}

/* Responsividade Aprimorada */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: none; /* Esconde o menu por padrão em telas pequenas */
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.5rem;
        text-align: left;
    }
    
    .nav-menu.active {
        display: flex; /* Mostra o menu quando a classe 'active' é adicionada pelo JS */
    }

    .menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .articles-section table {
        /* Força a tabela a ser rolável em telas muito pequenas */
        min-width: 600px; 
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
