/* ── HEALTH TRACKING ───────────────────────────────────── */

.health-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.health-metric-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.health-metric-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-600);
}

.health-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.health-metric-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.health-metric-category {
  font-size: var(--text-xs);
  font-weight: 600;
}

.health-metric-category.positive {
  color: var(--success);
}

.health-metric-category.negative {
  color: var(--danger);
}

.health-metric-category.neutral {
  color: var(--text-secondary);
}

.health-metric-change {
  font-size: var(--text-xs);
  font-weight: 600;
}

.health-metric-change.positive {
  color: var(--success);
}

.health-metric-change.negative {
  color: var(--danger);
}

.health-metric-change.neutral {
  color: var(--text-tertiary);
}

.weight-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.weight-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--glass-border);
}

.weight-entry-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.weight-entry-value {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.weight-entry-delete {
  width: var(--touch-target);
  height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.weight-entry-delete:hover {
  opacity: 1;
  color: var(--danger);
}

.weight-chart-container {
  width: 100%;
  height: 200px;
  position: relative;
}

.weight-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  border: 1px solid var(--glass-border);
}

.add-weight-form {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
}

.add-weight-form .glass-input {
  flex: 1;
}

.weight-add-btn {
  min-width: var(--touch-target);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.profile-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-input-group {
  display: flex;
  gap: var(--space-md);
}

.profile-calc-result {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

.tdee-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--brand-600);
  letter-spacing: -0.01em;
}

.tdee-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .health-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.data-section-desc {
  margin-bottom: var(--space-md);
}

.data-section-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}