/* =============================================
   CALORIE CALCULATOR — calorie.css
   Tool-specific styles only.
   Common styles are in tool.css
   ============================================= */

.cal-calc { width: 100%; }

/* Age hint */
.cal-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 6px;
}

/* Radio group — reuse from bmi */
.bmi-radio-group {
    display: flex;
    gap: 24px;
    padding: 10px 0;
}
.bmi-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}
.bmi-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}

/* Dual height input */
.bmi-dual-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Results */
.cal-results {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cal-result-header {
    background: #16a34a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 18px;
}

/* Summary cards */
.cal-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}
.cal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.cal-card.highlight {
    border-color: var(--teal);
    background: #f0fdf9;
}
.cal-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.cal-card-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--teal);
    font-family: var(--font-mono);
    line-height: 1.2;
}
.cal-card-value span {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.cal-card-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Goals table title */
.cal-goals-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px 6px;
    border-top: 1px solid var(--border);
}

/* Goals table wrapper */
.cal-goals-table,
.cal-results .mort-table {
    margin: 0;
    padding: 0 16px 16px;
    width: calc(100% - 32px);
    margin-left: 16px;
}

/* Goal tag badge */
.cal-goal-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 6px;
    vertical-align: middle;
}

/* Print row */
.cal-print-row {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--light);
}

/* Unit converter — reuse from bmi.css */
.unit-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.unit-subtab {
    padding: 8px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    margin-bottom: -2px;
    white-space: nowrap;
}
.unit-subtab:hover { color: var(--navy); background: var(--light); }
.unit-subtab.active { color: var(--teal); border-bottom-color: var(--teal); }

.unit-converter-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.unit-col { display: flex; flex-direction: column; gap: 8px; }
.unit-col-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.unit-from-input,
.unit-to-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.unit-from-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }
.unit-to-input { background: var(--light); color: var(--muted); cursor: default; }
.unit-list {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    outline: none;
    padding: 4px;
    min-height: 160px;
    cursor: pointer;
}
.unit-list option { padding: 7px 10px; border-radius: 4px; font-size: 13px; color: var(--text); }
.unit-list option:checked { background: var(--teal); color: var(--navy); }

@media (max-width: 768px) {
    .cal-summary-cards,
    .unit-converter-wrap { grid-template-columns: 1fr; }
    .bmi-dual-input { grid-template-columns: 1fr 1fr; }
}
