/* =========================================================
   YUMMY IN LONDON — Design tokens
   Palette:
     --ink-teal   #16302E  (derin çini mavisi-yeşili, koyu bölümler)
     --parchment  #F2EAD6  (sıcak parşömen, açık zemin)
     --saffron    #D9A02C  (safran altın, vurgu / CTA)
     --paprika    #B33A2E  (paprika kırmızısı, rozet / ikincil CTA)
     --charcoal   #22201B  (ana metin)
   Type:
     Display: 'Fraunces' (karakterli serif, ölçülü kullanılır)
     Body:    'Work Sans'
     Utility: 'IBM Plex Mono' (fiyatlar, tarihler — "menü panosu" hissi)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink-teal: #16302E;
  --ink-teal-light: #1F423F;
  --parchment: #F2EAD6;
  --parchment-dim: #E9DFC4;
  --saffron: #D9A02C;
  --paprika: #B33A2E;
  --charcoal: #22201B;
  --cream-text: #F7F1E4;
  --radius: 4px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--parchment);
  color: var(--charcoal);
  line-height: 1.55;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink-teal);
  color: var(--cream-text);
  border-bottom: 3px solid var(--saffron);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cream-text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .in-london {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--saffron);
  font-size: 15px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream-text);
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }

.cart-btn {
  background: var(--saffron);
  color: var(--ink-teal);
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  background: var(--paprika);
  color: var(--cream-text);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink-teal);
  color: var(--cream-text);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(217,160,44,0.10) 0, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(179,58,46,0.12) 0, transparent 45%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  max-width: 15ch;
  color: var(--cream-text);
}
.hero h1 em {
  font-style: italic;
  color: var(--saffron);
}
.hero p.lede {
  font-size: 18px;
  max-width: 46ch;
  color: rgba(247,241,228,0.82);
  margin-top: 18px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--saffron);
  color: var(--ink-teal);
}
.btn-outline {
  background: transparent;
  border-color: rgba(247,241,228,0.4);
  color: var(--cream-text);
}

/* ---------- Menu status banner ---------- */
.menu-status {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.menu-status.status-open {
  background: #E4EFDD;
  color: #2C5A1E;
  border: 1px solid #BFDDAE;
}
.menu-status.status-closed {
  background: #F3D9D4;
  color: var(--paprika);
  border: 1px solid rgba(179,58,46,0.3);
}
.status-subnote {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  opacity: 0.75;
  margin-left: auto;
}

/* ---------- Allergen notice ---------- */
.allergen-notice {
  background: var(--parchment-dim);
  border: 1px solid rgba(179,58,46,0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 28px;
}

/* ---------- Announcement banner (admin tarafından yönetilir) ---------- */
.announcement-banner {
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
}
.announcement-banner em { font-style: italic; font-weight: 700; }
.announcement-banner.style-info { background: var(--ink-teal); color: var(--cream-text); }
.announcement-banner.style-promo { background: var(--saffron); color: var(--ink-teal); }
.announcement-banner.style-urgent { background: var(--paprika); color: var(--cream-text); }

/* ---------- Today badge (legacy, kept for reference) ---------- */
.today-strip {
  background: var(--paprika);
  color: var(--cream-text);
  text-align: center;
  padding: 10px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.today-strip strong { color: var(--saffron); }

/* ---------- Menu sections ---------- */
.menu-section { padding: 80px 0; }
.menu-section.alt { background: var(--parchment-dim); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--charcoal);
  padding-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: var(--ink-teal);
  color: var(--cream-text);
  padding: 6px 12px;
  border-radius: var(--radius);
}

/* Weekly = torn-notepad card look */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.dish-card {
  background: #fff;
  border: 1px solid rgba(34,32,27,0.12);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.weekly-grid .dish-card {
  background: var(--parchment);
  border: 1px solid rgba(34,32,27,0.15);
  border-top: none;
}
.weekly-grid .dish-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 6px;
  background-image: linear-gradient(90deg, transparent 0 4px, var(--parchment) 4px 10px), radial-gradient(circle 5px at 5px 0, transparent 5px, var(--saffron) 0);
  background-size: 14px 6px;
  background-repeat: repeat-x;
}
.dish-card .pin {
  position: absolute;
  top: -10px;
  left: 18px;
  width: 18px;
  height: 18px;
  background: var(--paprika);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.dish-name { font-size: 21px; }
.dish-desc { font-size: 14px; color: rgba(34,32,27,0.7); flex-grow: 1; }
.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.dish-price {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 17px;
}
.add-btn {
  background: var(--ink-teal);
  color: var(--cream-text);
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.add-btn:hover { background: var(--paprika); }
.add-btn:disabled { background: #999; cursor: not-allowed; }

/* ---------- About ---------- */
.about {
  padding: 80px 0;
}
.about .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about h2 { font-size: clamp(28px, 4vw, 40px); }
.about p { color: rgba(34,32,27,0.75); font-size: 16px; }
.stat-row { display: flex; gap: 32px; margin-top: 28px; }
.stat b { font-family: 'Fraunces', serif; font-size: 30px; display: block; color: var(--paprika); }
.stat span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(34,32,27,0.6); }
.about-photo {
  aspect-ratio: 4/5;
  background: var(--ink-teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,241,228,0.5);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

@media (max-width: 780px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-photo { order: -1; aspect-ratio: 16/9; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-teal);
  color: rgba(247,241,228,0.75);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-family: 'Work Sans', sans-serif;
  color: var(--saffron);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-grid a { text-decoration: none; color: inherit; display: block; margin-bottom: 6px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(247,241,228,0.15);
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Account forms (login/register/account) ---------- */
.account-form { display: flex; flex-direction: column; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--charcoal);
}
.form-input {
  padding: 12px 14px;
  border: 1px solid rgba(34,32,27,0.25);
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  background: #fff;
  width: 100%;
}
.form-input:focus { outline: 2px solid var(--saffron); outline-offset: 1px; }

/* ---------- Cart totals breakdown ---------- */
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(34,32,27,0.7);
  margin-bottom: 6px;
}
.min-order-warning {
  background: #F3D9D4;
  color: var(--paprika);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(22,48,46,0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--parchment);
  z-index: 91;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  background: var(--ink-teal);
  color: var(--cream-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { margin: 0; font-size: 20px; }
.cart-close { background: none; border: none; color: var(--cream-text); font-size: 22px; cursor: pointer; }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34,32,27,0.12);
}
.cart-item-name { font-weight: 600; font-size: 15px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid rgba(34,32,27,0.3);
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.cart-empty { text-align: center; color: rgba(34,32,27,0.5); padding: 40px 0; font-size: 14px; }

.cart-footer {
  padding: 20px 24px 24px;
  border-top: 2px solid var(--charcoal);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.checkout-btn {
  width: 100%;
  background: var(--paprika);
  color: var(--cream-text);
  border: none;
  padding: 15px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.checkout-btn:hover { background: #932c22; }
.checkout-btn:disabled { background: #999; cursor: not-allowed; }
.cart-note { font-size: 12px; color: rgba(34,32,27,0.55); margin-top: 10px; text-align: center; }

/* ---------- Status pages (success/cancel) ---------- */
.status-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.status-box h1 { font-size: 36px; }
.status-box p { color: rgba(34,32,27,0.7); max-width: 44ch; margin: 12px auto 28px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--parchment-dim); font-family: 'Work Sans', sans-serif; }
.admin-shell { max-width: 900px; margin: 0 auto; padding: 40px 20px 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; border: 1px solid rgba(34,32,27,0.1); }
.admin-card h3 { font-size: 18px; margin-bottom: 4px; }
.admin-card .hint { font-size: 13px; color: rgba(34,32,27,0.55); margin-bottom: 16px; }
.item-row { display: grid; grid-template-columns: 1.4fr 2fr 0.7fr 0.6fr 90px; gap: 10px; align-items: center; margin-bottom: 10px; }
.item-row input[type=text], .item-row input[type=number] {
  padding: 8px 10px; border: 1px solid rgba(34,32,27,0.25); border-radius: 3px; font-family: 'Work Sans'; font-size: 14px; width: 100%;
}
.item-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.remove-btn { background: var(--paprika); color: #fff; border: none; padding: 8px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.add-item-btn { background: var(--ink-teal); color: #fff; border: none; padding: 10px 18px; border-radius: 3px; cursor: pointer; font-size: 14px; margin-top: 6px; }
.save-btn { background: var(--saffron); color: var(--ink-teal); border: none; padding: 13px 24px; border-radius: 3px; font-weight: 700; cursor: pointer; font-size: 15px; }
.login-box { max-width: 360px; margin: 90px auto; background: #fff; padding: 32px; border-radius: var(--radius); }
.login-box input { width: 100%; padding: 10px; margin-bottom: 14px; border: 1px solid rgba(34,32,27,0.25); border-radius: 3px; }
.flash { padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #dbead9; color: #1e5c2f; }
.flash.err { background: #f3d4d0; color: var(--paprika); }
