/* ===================================================================== */
/*                    🏃 CALCULADORA DE CALORIAS POR EXERCÍCIO           */
/* ===================================================================== */

/* ===================================
   VARIÁVEIS DE COR - ÁREA FITNESS/ESPORTE
   ================================== */
: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;
}

.calorias-exercicio-calculator-section,
.calorias-exercicio-container,
.calorias-exercicio-input-row,
.calorias-exercicio-buttons,
.calorias-exercicio-examples {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================
   LAYOUT PRINCIPAL
   ================================== */
.calorias-exercicio-calculator-section {
    margin-bottom: 3rem;
}

.calorias-exercicio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calorias-exercicio-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;
}

.calorias-exercicio-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.calorias-exercicio-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
   ================================== */
.calorias-exercicio-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calorias-exercicio-dados-basicos h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calorias-exercicio-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.calorias-exercicio-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.calorias-exercicio-input-group.full-width {
    flex: 100%;
    min-width: 100%;
}

.calorias-exercicio-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.calorias-exercicio-input-group input,
.calorias-exercicio-input-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.calorias-exercicio-input-group input:focus,
.calorias-exercicio-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.calorias-exercicio-input-group input.error,
.calorias-exercicio-input-group select.error {
    border-color: var(--secondary);
    background-color: #fef2f2;
}

.calorias-exercicio-unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.9rem;
    pointer-events: none;
    margin-top: 12px;
}

/* ===================================
   SELECT CUSTOMIZADO
   ================================== */
.calorias-exercicio-input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.calorias-exercicio-input-group select optgroup {
    font-weight: bold;
    color: var(--primary);
}

.calorias-exercicio-input-group select option {
    padding: 0.5rem;
    color: #374151;
}

/* ===================================
   BOTÕES DE AÇÃO
   ================================== */
.calorias-exercicio-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.calorias-exercicio-btn-calcular {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    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: 200px;
}

.calorias-exercicio-btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

.calorias-exercicio-btn-limpar {
    background: #6b7280;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.calorias-exercicio-btn-limpar:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ===================================
   EXEMPLOS RÁPIDOS
   ================================== */
.calorias-exercicio-examples {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calorias-exercicio-examples h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.calorias-exercicio-example-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.calorias-exercicio-example-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.calorias-exercicio-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===================================
   ÁREA DE RESULTADOS
   ================================== */
.calorias-exercicio-resultado {
    background: linear-gradient(135deg, #fef7ed, #fed7aa);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease-out;
}

.calorias-exercicio-resultado h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.calorias-exercicio-resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calorias-exercicio-resultado-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.calorias-exercicio-resultado-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calorias-exercicio-resultado-item .valor {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.calorias-exercicio-resultado-item .unidade {
    font-size: 0.9rem;
    color: #6b7280;
}

.calorias-exercicio-equivalencia {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--accent);
}

.calorias-exercicio-equivalencia h5 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.calorias-exercicio-equivalencia p {
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   CONTEÚDO EDUCACIONAL - VISUAL OBRIGATÓRIO
   ================================== */

/* Container educacional principal */
.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;
}

.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-block h2 {
    color: var(--primary) !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.8rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid var(--light) !important;
    padding-bottom: 1rem !important;
    text-align: left !important;
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-block h5 {
    color: var(--secondary);
    margin: 0.8rem 0 0.4rem 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-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* ===================================
   CARDS DINÂMICOS PARA ADS (.calc-explanation e .calc-legal)
   ================================== */

.calc-explanation,
.explanation {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.8s ease;
}

.calc-explanation h3,
.explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 0.8rem;
}

.calc-explanation h4,
.explanation h4 {
    color: var(--secondary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.calc-explanation p,
.explanation p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.calc-legal,
.legal-explanation {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.03) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid rgba(234, 88, 12, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.calc-legal h3,
.legal-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid rgba(234, 88, 12, 0.1);
    padding-bottom: 0.8rem;
}

.calc-legal h4,
.legal-explanation h4 {
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.calc-legal p,
.legal-explanation p {
    color: #7c2d12;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===================================
   DADOS FORNECIDOS - DENTRO DO CARD EXPLANATION
   ================================== */
.dados-fornecidos {
    background: linear-gradient(135deg, var(--light), rgba(234, 88, 12, 0.08)) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    border: 1px solid rgba(234, 88, 12, 0.15) !important;
}

.dados-fornecidos p {
    margin: 0.5rem 0 !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.dados-fornecidos strong {
    color: var(--secondary) !important;
}

/* ===================================
   ELEMENTOS VISUAIS ESPECIAIS
   ================================== */

/* Destaque de Fórmulas */
.formula-highlight {
    background: linear-gradient(135deg, #fef7ed, #fed7aa);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: bold;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.step-number {
    background: var(--gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

/* Exemplos Práticos */
.example-case {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--secondary);
}

.example-case h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.example-data {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Dicas - Tips List */
.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border: 2px solid rgba(234, 88, 12, 0.2);
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.tip-content h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tip-content p {
    color: #374151;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Aplicações Práticas - Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.application-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(234, 88, 12, 0.2);
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.application-item h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.application-item p {
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

/* Referências */
.references-content {
    padding: 1rem 0;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.references-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.references-list li:before {
    content: "📖";
    position: absolute;
    left: 0;
    top: 0.8rem;
}

.accuracy-note {
    background: linear-gradient(135deg, #fef7ed, #fed7aa);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.accuracy-note h5 {
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accuracy-note p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .calorias-exercicio-header h1 {
        font-size: 2rem;
    }
    
    .calorias-exercicio-container {
        padding: 1.5rem;
    }
    
    .calorias-exercicio-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calorias-exercicio-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .calorias-exercicio-example-buttons {
        flex-direction: column;
    }
    
    .calorias-exercicio-example-btn {
        min-width: 100%;
        max-width: 100%;
    }
    
    .calorias-exercicio-resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-list {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .calorias-exercicio-header h1 {
        font-size: 1.8rem;
    }
    
    .calorias-exercicio-header p {
        font-size: 1rem;
    }
    
    .calorias-exercicio-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .calorias-exercicio-btn-calcular,
    .calorias-exercicio-btn-limpar {
        min-width: 100%;
        padding: 1rem;
    }
}