/* ===================================================================== */
/*                    🔥 CALCULADORA DE QUEIMA DE CALORIAS              */
/* ===================================================================== */

/* ===================================
   VARIÁVEIS DE COR - ÁREA FITNESS
   ================================== */
:root {
    --primary: #ea580c;        /* Laranja energia */
    --secondary: #dc2626;      /* Vermelho força */
    --accent: #22c55e;         /* Verde saúde */
    --light: #fef7ed;          /* Fundo laranja claro */
    --gradient: linear-gradient(135deg, #ea580c, #dc2626);
}

/* ===================================
   PREVENIR SCROLL HORIZONTAL
   ================================== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.queima-calorias-calculator-section,
.queima-calorias-container,
.queima-calorias-input-row,
.queima-calorias-buttons,
.queima-calorias-examples {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================
   LAYOUT PRINCIPAL
   ================================== */
.queima-calorias-calculator-section {
    margin-bottom: 3rem;
}

.queima-calorias-header {
    text-align: center;
    margin-bottom: 2rem;
}

.queima-calorias-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.queima-calorias-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.queima-calorias-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    overflow-x: hidden;
    max-width: 100%;
}

/* ===================================
   INPUTS E FORMULÁRIOS
   ================================== */
.queima-calorias-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.queima-calorias-dados-basicos h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.queima-calorias-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.queima-calorias-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.queima-calorias-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.queima-calorias-input-group input,
.queima-calorias-input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.queima-calorias-input-group input:focus,
.queima-calorias-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.queima-calorias-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.9rem;
    pointer-events: none;
    margin-top: 12px;
}

/* ===================================
   BOTÕES
   ================================== */
.queima-calorias-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.queima-calorias-btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    min-width: 250px;
}

.queima-calorias-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.queima-calorias-btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.queima-calorias-btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ===================================
   EXEMPLOS
   ================================== */
.queima-calorias-examples {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.queima-calorias-examples h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.queima-calorias-example-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.queima-calorias-btn-example {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.queima-calorias-btn-example:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO
   ================================== */
.queima-calorias-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid var(--accent);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.queima-calorias-result h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.queima-resultado-valor {
    text-align: center;
    margin-bottom: 2rem;
}

.queima-valor-principal {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.queima-unidade {
    font-size: 1.2rem;
    color: #6b7280;
}

.queima-detalhes {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.queima-detalhes h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detalhe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    background: var(--light);
    border-left: 4px solid var(--primary);
}

.detalhe-label {
    font-weight: 600;
    color: var(--primary);
}

.detalhe-valor {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--secondary);
}

/* ===================================
   CARDS DINÂMICOS (PARA ADS) - PADRÃO CORRIGIDO
   ================================== */
.explanation.calc-explanation,
.calc-explanation,
.explanation,
.legal-explanation.calc-legal,
.calc-legal,
.legal-explanation {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--secondary);
    animation: slideIn 0.5s ease-out;
    overflow: hidden;
    position: relative;
}

.explanation.calc-explanation::before,
.calc-explanation::before,
.explanation::before,
.legal-explanation.calc-legal::before,
.calc-legal::before,
.legal-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.explanation.calc-explanation h3,
.calc-explanation h3,
.explanation h3,
.legal-explanation.calc-legal h3,
.calc-legal h3,
.legal-explanation h3 {
    color: var(--primary) !important;
    margin-bottom: 1.8rem !important;
    font-size: 1.8rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 1rem;
}

.explanation.calc-explanation h4,
.calc-explanation h4,
.explanation h4,
.legal-explanation.calc-legal h4,
.calc-legal h4,
.legal-explanation h4 {
    color: var(--secondary) !important;
    margin: 1.8rem 0 1rem 0 !important;
    font-size: 1.3rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explanation.calc-explanation p,
.calc-explanation p,
.explanation p,
.legal-explanation.calc-legal p,
.calc-legal p,
.legal-explanation p {
    color: #4a5568 !important;
    line-height: 1.7 !important;
    margin-bottom: 1.2rem !important;
    font-size: 1rem !important;
}

/* Dados fornecidos - MELHORADO */
.dados-fornecidos {
    background: linear-gradient(135deg, var(--light) 0%, rgba(234, 88, 12, 0.08) 100%) !important;
    border: 2px solid rgba(234, 88, 12, 0.2) !important;
    border-radius: 12px !important;
    padding: 1.8rem !important;
    margin: 1.5rem 0 !important;
    border-left: 5px solid var(--primary) !important;
    position: relative;
}

.dados-fornecidos h4 {
    color: var(--primary) !important;
    margin-bottom: 1.2rem !important;
    font-size: 1.2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dados-fornecidos p {
    margin: 0.6rem 0 !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* Fórmula destacada - MELHORADO */
.formula-highlight {
    background: linear-gradient(135deg, #fff 0%, rgba(234, 88, 12, 0.05) 100%) !important;
    border: 3px solid var(--accent) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    text-align: center;
    margin: 2rem 0 !important;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.1);
}

.formula-main {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: var(--secondary) !important;
    font-family: 'Courier New', monospace !important;
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
    border-left: 4px solid var(--primary) !important;
}

.formula-highlight p {
    color: var(--primary) !important;
    font-size: 0.95rem !important;
    margin: 0.8rem 0 !important;
    font-style: italic;
}

/* ===================================
   CONTEÚDO EDUCACIONAL - VISUAL COMPLETO
   ================================== */
.educational-content {
    margin-top: 3rem;
}

.educational-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

/* Cards educacionais - ESSENCIAL para visual bonito */
.content-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block h4 {
    color: var(--secondary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.content-block h5 {
    color: var(--primary);
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.content-block p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-block ul {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Componentes de energia */
.energia-componentes {
    background: rgba(234, 88, 12, 0.03);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent);
}

.energia-componentes h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Explicação MET */
.met-explanation {
    background: linear-gradient(135deg, var(--light) 0%, rgba(234, 88, 12, 0.05) 100%);
    border: 2px solid rgba(234, 88, 12, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.met-explanation p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Grid de exemplos MET */
.met-examples {
    margin: 2rem 0;
}

.met-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.met-item {
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.met-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.met-item.leve {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
}

.met-item.moderada {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}

.met-item.vigorosa {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-left-color: #ef4444;
}

.met-item h5 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.met-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.met-item li {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Tabela de atividades */
.atividades-table {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.atividade-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--gradient);
    color: white;
    font-weight: bold;
    padding: 1rem 0.5rem;
    text-align: center;
}

.atividade-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 0.8rem 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e0e6ed;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.atividade-row:hover {
    background: var(--light);
    transform: scale(1.01);
}

.atividade-row.low {
    border-left: 5px solid #22c55e;
    background: rgba(34, 197, 94, 0.02);
}

.atividade-row.medium {
    border-left: 5px solid #f59e0b;
    background: rgba(245, 158, 11, 0.02);
}

.atividade-row.high {
    border-left: 5px solid #ef4444;
    background: rgba(239, 68, 68, 0.02);
}

/* Lista de dicas estilizada */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tips-list li {
    background: rgba(234, 88, 12, 0.05);
    border: 1px solid rgba(234, 88, 12, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.tips-list li:hover {
    background: rgba(234, 88, 12, 0.08);
    transform: translateX(5px);
}

.tips-list li strong {
    color: var(--primary);
}

/* Efeito Afterburn */
.afterburn-effect {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.afterburn-effect h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.afterburn-effect p {
    color: #7f1d1d;
    margin: 0.8rem 0;
    line-height: 1.6;
}

/* Exemplos práticos melhorados */
.examples-content {
    margin: 1.5rem 0;
}

.example-item {
    background: rgba(234, 88, 12, 0.04);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-left: 4px solid var(--secondary);
    border-radius: 0 12px 12px 0;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateY(-3px);
    background: rgba(234, 88, 12, 0.06);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.12);
}

.example-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.example-calculation {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    margin-top: 1.2rem;
    border: 1px solid rgba(234, 88, 12, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.example-calculation p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.example-calculation strong {
    color: var(--secondary);
}

/* Grid de aplicações */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.application-item {
    background: linear-gradient(135deg, var(--light) 0%, rgba(234, 88, 12, 0.05) 100%);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.application-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.2);
}

.application-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.application-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
}

/* Lista de referências melhorada */
.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    background: rgba(234, 88, 12, 0.02);
    border-left: 3px solid var(--accent);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.references-list li:hover {
    background: rgba(234, 88, 12, 0.05);
    transform: translateX(3px);
}

.references-list strong {
    color: var(--primary);
    font-weight: 600;
}

.references-list em {
    color: var(--secondary);
    font-style: italic;
}

/* Accuracy note melhorado */
.accuracy-note {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7ed 100%);
    border: 3px solid #ffc107;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.15);
}

.accuracy-note h5 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accuracy-note p {
    color: #856404;
    margin: 0.8rem 0;
    line-height: 1.7;
    font-weight: 500;
}

.accuracy-note strong {
    color: #7c2d12;
}

/* ===================================
   HELP
   ================================== */
.queima-calorias-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.queima-calorias-help p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .queima-calorias-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .queima-calorias-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .queima-calorias-example-buttons {
        flex-direction: column;
    }
    
    .queima-valor-principal {
        font-size: 2.5rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .met-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tabela de atividades responsiva */
    .atividade-header,
    .atividade-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
        padding: 1rem;
    }
    
    .atividade-header {
        background: var(--primary);
    }
    
    .atividade-row {
        border: 1px solid #e0e6ed;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .ativ-nome::before { content: "Atividade: "; font-weight: bold; }
    .ativ-met::before { content: "MET: "; font-weight: bold; color: var(--accent); }
    .ativ-calorias::before { content: "Calorias: "; font-weight: bold; color: var(--secondary); }
    .ativ-intensidade::before { content: "Intensidade: "; font-weight: bold; color: var(--primary); }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .educational-content h2 {
        font-size: 1.6rem;
    }
    
    .explanation.calc-explanation,
    .legal-explanation.calc-legal {
        padding: 1.5rem;
    }
    
    .formula-main {
        font-size: 1.2rem;
    }
    
    .detalhe-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .queima-calorias-header h1 {
        font-size: 2rem;
    }
    
    .queima-calorias-container {
        padding: 1rem;
    }
    
    .queima-valor-principal {
        font-size: 2rem;
    }
    
    .atividade-header,
    .atividade-row {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .content-block {
        padding: 1.2rem;
    }
    
    .explanation.calc-explanation,
    .legal-explanation.calc-legal {
        padding: 1.2rem;
    }
    
    .formula-main {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .dados-fornecidos,
    .formula-highlight {
        padding: 1rem;
    }
    
    .met-item {
        padding: 1rem;
    }
}