/* =========================================================
   식단 화면
   ========================================================= */
.diet {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diet-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 오늘 추천 메뉴 ---------- */
.meal-plan {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.meal {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 2px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.meal:first-child {
  border-top: none;
}

.meal-time {
  flex-shrink: 0;
  width: 48px;
  padding: 4px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--sun-soft);
  color: var(--sun-ink);
}

.meal-desc {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.meal-change {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}

.meal:hover .meal-change {
  background: var(--leaf-soft);
  border-color: transparent;
  color: var(--leaf-ink);
}

/* ---------- 항염증 식단 가이드 ---------- */
.guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  text-align: left;
}

.guide-chevron {
  width: 28px;
  height: 28px;
  fill: var(--muted);
  transition: transform 0.2s;
}

.food-guide-container {
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.food-column {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.food-column:first-child {
  padding-top: 4px;
  border-top: none;
}

.food-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.food-header .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
}

.good-foods .food-header .icon {
  background: var(--leaf-soft);
  fill: var(--leaf-ink);
}

.bad-foods .food-header .icon {
  background: var(--rose-soft);
  fill: var(--rose);
}

.as-foods .food-header .icon {
  background: var(--sun-soft);
  fill: var(--sun-ink);
}

.food-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.food-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.food-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.food-list strong {
  font-weight: 700;
}

/* ---------- 메뉴 선택 시트 ---------- */
.diet-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-height: 60vh;
  overflow-y: auto;
}

.diet-option-item {
  padding: 14px 6px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0;
}

.diet-option-item:first-child {
  border-top: none;
}

.diet-option-item:hover {
  background: var(--surface-2);
}

.diet-option-item.selected {
  position: relative;
  padding-right: 36px;
  color: var(--leaf-ink);
  font-weight: 700;
}

.diet-option-item.selected::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 13px;
  margin-top: -9px;
  border: solid var(--leaf);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
