/*! Calculadora TMB - Taxa Metabólica Basal - Custom Styles */

/* ===== CALCULADORA ICON ===== */
.calculator-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.5));
}

/* ===== FORM ENHANCEMENTS ===== */
.form-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}

.input-group-text {
    background: rgba(231, 76, 60, 0.2);
    border-color: var(--glass-border);
    color: #fff;
    font-weight: 600;
}

/* ===== TABS NAVIGATION ===== */
.nav-pills .nav-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-weight: 600;
    transition: var(--transition-smooth);
    padding: 1rem 1.5rem;
}

.nav-pills .nav-link:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ===== TMB VALUE DISPLAY ===== */
.tmb-value-container {
    position: relative;
    padding: 2rem;
}

.tmb-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.5));
}

.tmb-unit {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== TDEE VALUE DISPLAY ===== */
.tdee-value-container {
    position: relative;
    padding: 2rem;
}

.tdee-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22, #d35400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(230, 126, 34, 0.5));
}

.tdee-unit {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== OBJETIVO CARDS ===== */
.objetivo-info {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
}

.objetivo-info.perder {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.objetivo-info.manter {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.objetivo-info.ganhar {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.objetivo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.objetivo-calorias {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

.objetivo-info.perder .objetivo-calorias {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.objetivo-info.manter .objetivo-calorias {
    background: linear-gradient(135deg, #27ae60, #229954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.objetivo-info.ganhar .objetivo-calorias {
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.objetivo-descricao {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== MACRO CARDS ===== */
.macro-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.macro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--macro-color), transparent);
    opacity: 0.6;
}

.macro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--macro-color);
}

.protein-card {
    --macro-color: #e74c3c;
}

.carbs-card {
    --macro-color: #f39c12;
}

.fat-card {
    --macro-color: #3498db;
}

.macro-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.protein-card .macro-icon {
    color: #e74c3c;
    filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.5));
}

.carbs-card .macro-icon {
    color: #f39c12;
    filter: drop-shadow(0 4px 12px rgba(243, 156, 18, 0.5));
}

.fat-card .macro-icon {
    color: #3498db;
    filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.5));
}

.macro-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.macro-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.macro-kcal {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.macro-percent {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: #e74c3c;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-item a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.alert-info {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    color: #fff;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .calculator-icon {
        font-size: 3rem;
    }
    
    .tmb-value,
    .tdee-value {
        font-size: 3rem;
    }
    
    .objetivo-calorias {
        font-size: 2rem;
    }
    
    .macro-value {
        font-size: 1.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .tmb-value,
    .tdee-value {
        font-size: 2.5rem;
    }
    
    .objetivo-calorias {
        font-size: 1.75rem;
    }
    
    .macro-icon {
        font-size: 2rem;
    }
    
    .macro-value {
        font-size: 1.25rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultContainer {
    animation: fadeIn 0.5s ease-out;
}

.macro-card {
    animation: fadeIn 0.5s ease-out;
}

.macro-card:nth-child(1) {
    animation-delay: 0.1s;
}

.macro-card:nth-child(2) {
    animation-delay: 0.2s;
}

.macro-card:nth-child(3) {
    animation-delay: 0.3s;
}
