/* My Personal Chef — RED + ORANGE + BLACK theme (owner direction).
   Black is a real base: black header band and footer, black headings
   and ink, black borders where they add punch. Red is the LEADING
   accent (buttons, active states, prices, key highlights). Orange is
   the secondary highlight (chips, secondary badges, founding-offer
   banner, free-meals/donate accents). Gold stars stay gold.
   Page backgrounds stay light cream so food photos and text read
   easily — the page itself is NOT turned black. Body text is black
   on cream/white, never on low-contrast red or orange. All text sits
   on solid panels — never directly over a food photo. */
:root {
  color-scheme: light;
  --accent: #d7261e;        /* warm appetite-red — LEADING accent */
  --accent-dark: #a3160f;   /* deep red — red text on light backgrounds */
  --orange: #e4572e;        /* warm tomato-orange — secondary highlight */
  --orange-dark: #b23c14;   /* deep orange — orange text on light backgrounds */
  --orange-tint: #fdeee2;   /* light orange tint — chips, banners, panels */
  --black: #14100d;         /* base black — header, footer, headings, ink */
  --gold: #f5a623;          /* star ratings */
  --ink: #171310;           /* main writing — near-black */
  --muted: #7a6a5c;         /* secondary writing */
  --line: #ecd9c8;          /* warm borders */
  --card-bg: #ffffff;
  --panel: #fff3e4;         /* solid warm panel */
  --page-bg: #fff8f0;       /* cream */
  --error: #c62828;
  --wa: #25d366;            /* WhatsApp brand green (button only) */
  --wolt: #00c2e8;          /* Wolt brand blue (button only) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.45;
}

/* Header — black band */
.site-header { background: var(--black); border-bottom: 3px solid var(--accent); }
.header-inner {
  max-width: 900px; margin: 0 auto; padding: 12px 16px 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 56px; width: 56px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--gold);
}
.brand-name { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; }
.brand-tag { display: block; color: #d9cdc2; font-size: .85rem; }
.lang-toggle { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lang-btn {
  background: none; border: none; cursor: pointer; font: inherit; font-size: .92rem;
  color: #f5efe9; padding: 4px 6px; border-radius: 8px;
}
.lang-btn.active { color: #ffb4ac; font-weight: 800; text-decoration: underline; }
.lang-sep { color: #6b5d52; }

.tabs {
  max-width: 900px; margin: 0 auto; padding: 4px 16px 0;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.tab {
  background: var(--panel); border: 1px solid var(--line); border-bottom: none;
  padding: 9px 12px; font: inherit; font-size: .95rem; cursor: pointer;
  border-radius: 10px 10px 0 0; color: var(--ink);
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* Hero — Dish of the Week. Text sits on a SOLID dark panel, never raw
   over the photo (legibility rule). */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 240px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #6d0d08, #d7261e 55%, #e4572e);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,10,2,.55) 0%, rgba(30,10,2,.08) 60%);
}
.hero-panel {
  position: relative; z-index: 1; width: 100%;
  background: rgba(24, 8, 2, .82); color: #fff;
  border-top: 4px solid var(--accent);
  padding: 16px max(16px, calc((100% - 900px) / 2 + 16px)) 18px;
}
.hero-badge {
  display: inline-block; background: var(--gold); color: #231303; font-weight: 800;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.hero-title { margin: 0 0 4px; font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; }
.hero-sub { margin: 0; font-size: .98rem; color: #ffe9d6; max-width: 640px; }

/* Two-way signpost — the fork under the hero: eat (red) or cook (black),
   orange carries the cook card's sub-line. Big tap targets, stacked on
   phones. Text is white / light-cream on the solid red and black fills. */
.fork {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
@media (max-width: 620px) { .fork { grid-template-columns: 1fr; } }
.fork-card {
  display: flex; align-items: center; gap: 14px; text-align: start;
  padding: 18px; border-radius: 14px; cursor: pointer; font: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.fork-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fork-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.fork-text { display: flex; flex-direction: column; gap: 2px; }
.fork-title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.fork-sub { font-size: .92rem; }
.fork-eat {
  background: var(--accent); border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(215, 38, 30, .32);
}
.fork-eat .fork-sub { color: #ffe9d6; }
.fork-eat:hover { background: var(--accent-dark); transform: translateY(-1px); }
.fork-cook {
  background: var(--black); border: 2px solid var(--black);
  box-shadow: 0 4px 16px rgba(20, 16, 13, .30);
}
.fork-cook .fork-sub { color: #ffc9a3; }
.fork-cook:hover { transform: translateY(-1px); }

main { max-width: 900px; margin: 0 auto; padding: 16px; }
.view { display: none; }
.view.active { display: block; }

.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(122, 45, 18, .08);
}
.card h2 { margin-top: 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.section-title { font-size: 1.2rem; font-weight: 800; margin: 20px 0 10px; color: var(--ink); }
.kindness { color: var(--orange-dark); font-weight: 700; }
.kindness-card { border: 2px solid var(--orange); background: var(--orange-tint); }
.kindness-card h2 { color: var(--ink); }

/* Forms */
label { display: block; margin-bottom: 12px; font-size: .92rem; }
label > span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 10px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.btn {
  display: inline-block; border: 1px solid var(--accent); background: #fff; color: var(--accent-dark);
  padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800;
  box-shadow: 0 4px 16px rgba(215, 38, 30, .32);
}
.btn.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.whatsapp { background: var(--wa); border-color: var(--wa); color: #06330f; font-weight: 800; }
.btn.small { padding: 6px 10px; font-size: .88rem; }
.btn.danger { border-color: var(--error); color: var(--error); }
.form-error { color: var(--error); font-size: .9rem; }
.form-ok { color: var(--orange-dark); font-size: .95rem; font-weight: 600; }
details.post-card summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; color: var(--ink); }
details.post-card form { margin-top: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.check-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.check-row > span { color: var(--ink); font-size: .95rem; margin: 0; }
.license-row {
  background: #fde7e4; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px;
}
.days-field { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 10px 12px; }
.days-field legend { color: var(--muted); font-size: .8rem; padding: 0 4px; }
.days-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.days-row .check-row { margin-bottom: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.filters label { margin-bottom: 0; }
@media (max-width: 620px) { .filters { grid-template-columns: 1fr; } }

/* Cook cards */
.cook-card { padding: 16px; border: 2px solid var(--black); }
.cook-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.cook-name { margin: 0; font-size: 1.2rem; font-weight: 800; }
.cook-meta { color: var(--muted); font-size: .88rem; margin: 2px 0; }
.chip {
  display: inline-block; background: var(--orange-tint); color: var(--orange-dark);
  border: 1px solid var(--orange); border-radius: 999px; padding: 2px 10px;
  font-size: .8rem; font-weight: 700; margin-inline-end: 6px; margin-bottom: 4px;
}
.chip.mode { background: var(--black); color: #fff; border-color: var(--black); }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; font-size: 1.05rem; }
.stars .num { color: var(--ink); font-size: .85rem; letter-spacing: 0; }
.stars .none { color: var(--muted); font-size: .85rem; letter-spacing: 0; }
.cook-about { margin: 8px 0; font-size: .95rem; white-space: pre-wrap; }
.menu-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.menu-table th, .menu-table td { padding: 6px 4px; border-bottom: 1px dashed var(--line); text-align: start; vertical-align: top; }
.menu-table .price { text-align: end; font-weight: 800; color: var(--accent-dark); white-space: nowrap; }
.dish-note { display: block; color: var(--muted); font-size: .82rem; }
.cook-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rate-box { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.rate-kind { color: var(--orange-dark); font-weight: 700; font-size: .9rem; margin: 0 0 8px; }
.rate-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.rate-row label { flex: 1; min-width: 130px; margin-bottom: 0; }
.star-input { display: inline-flex; gap: 2px; direction: ltr; }
.star-input button {
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: #d9c8b8; padding: 2px;
}
.star-input button.on { color: var(--gold); }

/* Order panel */
.order-card { border: 2px solid var(--accent); }
.order-item-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.order-item-row .oi-name { font-weight: 600; }
.order-item-row .oi-price { color: var(--muted); font-size: .85rem; }
.qty-stepper { display: flex; align-items: center; gap: 6px; }
.qty-stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent);
  background: #fff; color: var(--accent-dark); font-size: 1.05rem; font-weight: 800; cursor: pointer;
}
.qty-stepper .qty { min-width: 22px; text-align: center; font-weight: 800; }
.order-total { font-size: 1.1rem; }
.order-total strong { color: var(--accent-dark); }
.wolt-box { margin: -2px 0 12px; }
.btn.wolt { background: var(--wolt); border-color: var(--wolt); color: #07333d; font-weight: 800; }
.btn.wolt:hover { filter: brightness(.95); transform: translateY(-1px); }
.wolt-note { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Free today + requests */
.free-card { border: 2px solid var(--orange); background: #fffaf4; }
.free-food { font-weight: 800; font-size: 1.08rem; margin: 0 0 2px; }
.request-card .craving { font-weight: 800; font-size: 1.05rem; margin: 0 0 2px; }

/* Empty states */
.empty {
  border: 1px dashed var(--line); border-radius: 14px; padding: 28px 16px;
  text-align: center; color: var(--muted); margin-bottom: 16px; background: #fffdf9;
}

/* Advertise */
.offer-banner {
  background: var(--orange-tint); border: 1px solid var(--orange); color: var(--orange-dark);
  border-radius: 10px; padding: 10px 12px; font-weight: 700; margin: 12px 0;
}
.placement { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.placement h3 { margin: 0 0 4px; font-size: 1rem; }
.placement .price { color: var(--accent-dark); font-weight: 800; font-size: 1.05rem; }
.placement .founding { color: var(--orange-dark); font-weight: 700; font-size: .9rem; }
.placement p { margin: 4px 0 0; font-size: .92rem; }

/* Menu editor (join form) */
.menu-title { color: var(--ink); margin: 18px 0 8px; }
.menu-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; margin-bottom: 8px; align-items: start; }
.menu-row input { margin: 0; }
@media (max-width: 520px) { .menu-row { grid-template-columns: 1fr 90px auto; } }

/* Footer — black band */
.site-footer {
  background: var(--black); color: #f5efe9; text-align: center;
  padding: 18px 16px 22px; margin-top: 26px; border-top: 3px solid var(--accent);
}
.footer-logo { height: 52px; width: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); }
.footer-name { font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-tag, .footer-model { font-size: .85rem; color: #d9cdc2; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: start; vertical-align: top;
}
.admin-wrap { overflow-x: auto; }
.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin-inline-end: 6px; }
