/* Yemek Listesi sayfası stilleri */

/* Bu sayfada weather/header-fx katmanı görünür olmalı (palmiye/deniz dahil). */
html.sleek-shell body.page-yemek #creamHero .header-fx-layer,
html.sleek-shell body.page-yemek #creamHero .header-fx-canvas {
  display: block !important;
}

.yemek-main {
  padding: 1rem 1rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}

/* Yükleniyor spinner */
.yemek-loading {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem 0;
  color: var(--muted, #94a3b8);
  font-size: .95rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  opacity: .6;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Uyarı kutusu */
.yemek-alert {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent);
  border-radius: 10px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--fg, #e2e8f0);
}

/* Bugünkü kartlar */
.yemek-today-section {
  margin-bottom: 1.25rem;
}

.yemek-today-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 500px) {
  .yemek-today-cards { justify-content: stretch; }
}

.yemek-duty-card .branch { color: #0ea5e9; }
.yemek-duty-card {
  width: min(260px, 100%);
}
.yemek-duty-card .name {
  margin: 3px 0;
}
.yemek-duty-card .name .name-first {
  font-size: 15px;
  line-height: 1.32;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.yemek-duty-card .name .name-last {
  display: none;
}
.yemek-duty-card .yemek-duty-date {
  font-size: 11px;
  opacity: .72;
  margin: 1px 0 6px;
}

/* Not kutusu kaldırıldı */

/* Aylık liste bölümü */
.yemek-month-section {
  margin-top: .5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.yemek-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.yemek-month-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.yemek-toggle-btn {
  font-size: .82rem;
  padding: .3rem .7rem;
}

.yemek-table-wrap {
  width: 100%;
  max-width: 760px;
  height: clamp(320px, 52vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 auto;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  -webkit-overflow-scrolling: touch;
}

/* İcap ay tablosu stiline yakınlaştır */
.yemek-mt {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.yemek-mt th.corner { width: 34%; min-width: 0; }
.yemek-mt th.nm-h { width: 66%; min-width: 0; }
.yemek-mt thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  letter-spacing: .7px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(31, 41, 55, 0.18);
}
.yemek-mt th,
.yemek-mt td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  vertical-align: top;
}
.yemek-mt td.br {
  white-space: normal;
  word-break: break-word;
  font-weight: 700;
  color: #ef4444;
  width: 34%;
  background: rgba(255, 255, 255, 0.96);
}
.yemek-mt td.nm {
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  color: #111827;
  width: 66%;
}
.yemek-mt tbody tr.is-today td {
  background: rgba(163, 230, 53, 0.18);
  box-shadow: inset 0 0 0 1px rgba(101, 163, 13, 0.35);
}
.yemek-mt tbody tr.is-today td.br {
  color: #4d7c0f;
  text-shadow: 0 0 6px rgba(163, 230, 53, 0.35);
}

.yemek-mt .meal-items {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .6rem;
}

.yemek-mt .meal-item {
  display: inline-block;
}

.yemek-mt .meal-sep {
  color: var(--muted, #94a3b8);
  opacity: .4;
}

/* Kaynak satırı */
.yemek-source {
  margin-top: 1.2rem;
  text-align: center;
}

.yemek-source a {
  color: #0ea5e9;
  text-decoration: none;
}

.yemek-source a:hover { text-decoration: underline; }

/* Gece tema uyumu */
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-table-wrap {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
}
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt thead th {
  background: rgba(15, 23, 42, 0.95);
  color: #cbd5e1;
  border-bottom-color: rgba(148, 163, 184, 0.28);
}
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt th,
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt td {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt td.br {
  background: rgba(17, 24, 39, 0.94);
  color: #f87171;
}
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt td.nm {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt tbody tr.is-today td {
  background: rgba(132, 204, 22, 0.22);
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.45);
}
html.sleek-shell:not(.sleek-cream) body.page-yemek .yemek-mt tbody tr.is-today td.br {
  color: #bef264;
  text-shadow: 0 0 6px rgba(190, 242, 100, 0.35);
}

