/* ===================================
   CALCULADORA IMC - SLIM FIT OFICIAL
   Cores: Verde (#2ecc71, #27ae60)
   Design: Moderno, Clean, Responsivo
   =================================== */

/* VARIÁVEIS DE COR */
:root {
    --verde-principal: #27ae60;
    --verde-hover: #229954;
    --verde-claro: #2ecc71;
    --verde-muito-claro: #e8f8f0;
    --cinza-texto: #2c3e50;
    --cinza-claro: #ecf0f1;
    --branco: #ffffff;
    --vermelho: #e74c3c;
    --laranja: #f39c12;
    --amarelo: #f1c40f;
    --azul: #3498db;
}

/* CONTAINER PRINCIPAL */
.calc-imc-container {
    background: var(--branco);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 30px auto;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
}

.calc-imc-container:hover {
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.15);
}

/* VERSÕES DE TAMANHO */
.calc-imc-full {
    max-width: 900px;
}

.calc-imc-medium {
    max-width: 500px;
}

.calc-imc-mini {
    max-width: 350px;
    padding: 20px;
}

/* HERO SECTION (Versão Full) */
.calc-imc-hero {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--verde-muito-claro);
}

.calc-imc-title-main {
    font-size: 2.5rem;
    color: var(--cinza-texto);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.calc-imc-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* TÍTULO (Versão Compacta) */
.calc-imc-title {
    font-size: 1.5rem;
    color: var(--cinza-texto);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* FORMULÁRIO */
.calc-imc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-imc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-imc-input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cinza-texto);
    display: flex;
    align-items: center;
    gap: 5px;
}

.calc-imc-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--cinza-claro);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--branco);
    color: var(--cinza-texto);
    box-sizing: border-box;
}

.calc-imc-input:focus {
    outline: none;
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.calc-imc-input::placeholder {
    color: #bdc3c7;
}

/* BOTÃO CALCULAR */
.calc-imc-button {
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-principal) 100%);
    color: var(--branco);
    border: none;
    border-radius: 10px;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.calc-imc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-hover) 100%);
}

.calc-imc-button:active {
    transform: translateY(0);
}

.calc-imc-button-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.calc-imc-button:hover .calc-imc-button-icon {
    transform: translateX(5px);
}

/* ÁREA DE RESULTADO */
.calc-imc-resultado {
    margin-top: 30px;
    padding: 25px;
    background: var(--verde-muito-claro);
    border-radius: 12px;
    border-left: 4px solid var(--verde-principal);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-imc-resultado-valor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calc-imc-label {
    font-size: 1.1rem;
    color: var(--cinza-texto);
    font-weight: 600;
}

.calc-imc-numero {
    font-size: 3rem;
    font-weight: 700;
    color: var(--verde-principal);
    line-height: 1;
}

/* STATUS BADGE */
.calc-imc-resultado-status {
    text-align: center;
    margin-bottom: 20px;
}

.calc-imc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calc-imc-status-icon {
    font-size: 1.2rem;
}

/* STATUS COLORS */
.calc-imc-status-abaixo {
    background: #fff3cd;
    color: #856404;
}

.calc-imc-status-abaixo .calc-imc-status-icon {
    color: var(--amarelo);
}

.calc-imc-status-normal {
    background: #d4edda;
    color: #155724;
}

.calc-imc-status-normal .calc-imc-status-icon {
    color: var(--verde-principal);
}

.calc-imc-status-sobrepeso {
    background: #fff3cd;
    color: #856404;
}

.calc-imc-status-sobrepeso .calc-imc-status-icon {
    color: var(--laranja);
}

.calc-imc-status-obesidade1 {
    background: #f8d7da;
    color: #721c24;
}

.calc-imc-status-obesidade1 .calc-imc-status-icon {
    color: var(--laranja);
}

.calc-imc-status-obesidade2,
.calc-imc-status-obesidade3 {
    background: #f8d7da;
    color: #721c24;
}

.calc-imc-status-obesidade2 .calc-imc-status-icon,
.calc-imc-status-obesidade3 .calc-imc-status-icon {
    color: var(--vermelho);
}

/* EXPLICAÇÃO */
.calc-imc-resultado-explicacao {
    text-align: center;
    font-size: 0.95rem;
    color: #566573;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA (Call-to-Action) */
.calc-imc-cta {
    margin-top: 25px;
    padding: 25px;
    background: var(--branco);
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--verde-principal);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.calc-imc-cta-texto {
    font-size: 1rem;
    color: var(--cinza-texto);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.calc-imc-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-principal) 100%);
    color: var(--branco);
    padding: 15px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.calc-imc-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    text-decoration: none;
    color: var(--branco);
}

/* CONTEÚDO SEO (Versão Full) */
.calc-imc-seo-content {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--cinza-claro);
}

.calc-imc-info-section {
    margin-bottom: 40px;
}

.calc-imc-info-section h2 {
    color: var(--cinza-texto);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.calc-imc-info-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--verde-principal);
    border-radius: 2px;
}

.calc-imc-info-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #566573;
    margin-bottom: 15px;
}

.calc-imc-info-section ul {
    list-style: none;
    padding-left: 0;
}

.calc-imc-info-section ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #566573;
}

.calc-imc-info-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--verde-principal);
    font-weight: 700;
    font-size: 1.2rem;
}

/* TABELA */
.calc-imc-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calc-imc-tabela thead {
    background: var(--verde-principal);
    color: var(--branco);
}

.calc-imc-tabela th,
.calc-imc-tabela td {
    padding: 15px;
    text-align: left;
}

.calc-imc-tabela tbody tr {
    border-bottom: 1px solid var(--cinza-claro);
}

.calc-imc-tabela tbody tr:hover {
    background: var(--verde-muito-claro);
}

.calc-imc-tabela .calc-imc-normal {
    background: #d4edda;
    font-weight: 600;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .calc-imc-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .calc-imc-title-main {
        font-size: 1.8rem;
    }
    
    .calc-imc-subtitle {
        font-size: 1rem;
    }
    
    .calc-imc-numero {
        font-size: 2.5rem;
    }
    
    .calc-imc-button {
        font-size: 1rem;
        padding: 14px 25px;
    }
    
    .calc-imc-info-section h2 {
        font-size: 1.5rem;
    }
    
    .calc-imc-tabela {
        font-size: 0.9rem;
    }
    
    .calc-imc-tabela th,
    .calc-imc-tabela td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .calc-imc-title-main {
        font-size: 1.5rem;
    }
    
    .calc-imc-numero {
        font-size: 2rem;
    }
    
    .calc-imc-resultado {
        padding: 20px;
    }
    
    .calc-imc-cta {
        padding: 20px;
    }
    
    .calc-imc-cta-button {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }
}

/* ANIMAÇÕES E TRANSIÇÕES */
.calc-imc-container * {
    transition: all 0.2s ease;
}

/* ACESSIBILIDADE */
.calc-imc-input:focus,
.calc-imc-button:focus,
.calc-imc-cta-button:focus {
    outline: 2px solid var(--verde-principal);
    outline-offset: 2px;
}

/* LOADING STATE */
.calc-imc-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.calc-imc-button.loading .calc-imc-button-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* MENSAGENS DE ERRO */
.calc-imc-erro {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--vermelho);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* PRINT STYLES */
@media print {
    .calc-imc-button,
    .calc-imc-cta {
        display: none;
    }
    
    .calc-imc-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
