/* Дневник по приёмам пищи, кнопки «Приготовить» и окно рецепта. */

/* ---------- Разделы дневника: Завтрак / Обед / Перекус / Ужин ---------- */
.meal-groups { display: flex; flex-direction: column; gap: 14px; }
.meal-group { display: flex; flex-direction: column; gap: 10px; }
.meal-group + .meal-group { padding-top: 14px; border-top: 1px solid rgba(207, 232, 239, .10); }
.meal-group-head { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.meal-group-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px;
  width: 34px; height: 34px; border-radius: 11px;
  color: #caff63; background: rgba(183, 255, 0, .10); border: 1px solid rgba(183, 255, 0, .24); font-size: 14px;
}
.meal-group-head h4 { margin: 0; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .01em; }
.meal-group-total { margin-left: auto; color: #caff63; font-size: 13px; font-weight: 800; white-space: nowrap; }
.meal-group.is-empty .meal-group-total { color: rgba(214, 230, 232, .5); font-weight: 600; }
.meal-group.is-empty .meal-group-icon { color: rgba(214, 230, 232, .55); background: rgba(255, 255, 255, .04); border-color: rgba(207, 232, 239, .12); }
.meal-group-add {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px;
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  color: #ffd08a; background: rgba(255, 158, 47, .10); border: 1px solid rgba(255, 158, 47, .35);
}
.meal-group-add:hover, .meal-group-add:focus-visible { background: rgba(255, 158, 47, .22); outline: none; }

/* Карточка записи без картинки: только название и данные. */
#mealsList .meal-card .meal-card-main { gap: 12px; }
#mealsList .meal-card .meal-card-content { padding-left: 2px; }

/* ---------- «Приготовить» в дневнике ---------- */
.meal-actions .meal-action-cook,
.meals-page .meals-section-wrap .meal-actions .meal-action-cook {
  grid-column: 1 / -1;
  color: #caff63 !important; background: rgba(183, 255, 0, .09) !important; border-color: rgba(183, 255, 0, .32) !important;
}
.meals-page .meals-section-wrap .meal-actions .meal-action-cook i { color: #caff63 !important; }
.meal-actions .meal-action-cook:hover, .meal-actions .meal-action-cook:focus-visible,
.meals-page .meals-section-wrap .meal-actions .meal-action-cook:hover, .meals-page .meals-section-wrap .meal-actions .meal-action-cook:focus-visible { background: rgba(183, 255, 0, .18) !important; }

/* ---------- «Приготовить» и «Добавить день» в плане питания ---------- */
.meal-plan-cook-button, .meal-plan-add-day-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font-size: 13px; font-weight: 850;
}
.meal-plan-cook-button { margin-top: 10px; color: #caff63; background: rgba(183, 255, 0, .09); border: 1px solid rgba(183, 255, 0, .32); }
.meal-plan-add-day-button { width: 100%; margin-top: 12px; color: #ffd08a; background: rgba(255, 158, 47, .10); border: 1px solid rgba(255, 158, 47, .38); }
.meal-plan-cook-button:hover, .meal-plan-cook-button:focus-visible { background: rgba(183, 255, 0, .18); outline: none; }
.meal-plan-add-day-button:hover, .meal-plan-add-day-button:focus-visible { background: rgba(255, 158, 47, .2); outline: none; }

/* ---------- Окно рецепта ---------- */
.meal-recipe-modal { color: #dbe8ee; }
.meal-recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.meal-recipe-head h3 { margin: 4px 0 0; color: #fff; font-size: 19px; font-weight: 900; line-height: 1.25; }
.meal-recipe-head p { margin: 4px 0 0; color: #9fb2bc; font-size: 12px; }
.meal-recipe-kicker { display: inline-flex; align-items: center; gap: 6px; color: #b7ff00; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.meal-recipe-close { flex: 0 0 auto; color: #9fb2bc; font-size: 20px; background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.meal-recipe-time { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 6px 10px; border-radius: 10px; color: #ffd08a; background: rgba(255, 158, 47, .10); font-size: 12px; font-weight: 700; }
.meal-recipe-modal h4 { margin: 14px 0 8px; color: #fff; font-size: 14px; font-weight: 900; }
.meal-recipe-ingredients { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.meal-recipe-ingredients li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.4; }
.meal-recipe-ingredients li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #b7ff00; }
.meal-recipe-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.meal-recipe-steps li { counter-increment: step; position: relative; padding: 10px 12px 10px 44px; border-radius: 12px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(207, 232, 239, .10); font-size: 13px; line-height: 1.45; }
.meal-recipe-steps li::before { content: counter(step); position: absolute; left: 10px; top: 9px; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #0b1a10; background: #b7ff00; font-size: 12px; font-weight: 900; }
.meal-recipe-tip { display: flex; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; color: #ffe3b0; background: rgba(255, 158, 47, .08); font-size: 12px; line-height: 1.45; }
.meal-recipe-tip i { margin-top: 2px; color: #ffae40; }
.meal-recipe-loading { display: flex; align-items: center; gap: 10px; padding: 18px 4px; color: #c7d8e2; font-size: 13px; }
.meal-recipe-error { margin: 6px 0 0; color: #ffd0a0; font-size: 13px; }

/* Откуда рецепт: каталог или кеш уже подобранных (recipe-cache.js). */
.meal-recipe-source, .home-recipe-source {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 11px;
  border-radius: 12px; color: #caff63; background: rgba(183, 255, 0, .08); border: 1px solid rgba(183, 255, 0, .22);
  font-size: 12.5px; font-weight: 700; line-height: 1.35;
}
.meal-recipe-source i, .home-recipe-source i { flex: 0 0 auto; }
