:root {
  --color-primary: #d1441c;
  --color-primary-dark: #a8340f;
  --color-accent: #f2a71b;
  --color-bg: #fffaf3;
  --color-surface: #ffffff;
  --color-text: #2b2320;
  --color-text-muted: #6b5f57;
  --color-border: #eadfd2;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(43, 35, 32, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1c1815;
    --color-surface: #262019;
    --color-text: #f4ece2;
    --color-text-muted: #c9bcae;
    --color-border: #3a322b;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--color-primary); }

.site-header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

.main-nav a:first-child { margin-left: 0; }
.main-nav a:hover { text-decoration: underline; }

.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 { font-size: 2.4rem; margin: 0 0 10px; }
.hero p { font-size: 1.15rem; margin: 0; opacity: 0.95; }

main { min-height: 60vh; padding: 40px 0; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

h1, h2, h3 { color: var(--color-text); }

.menu-category { margin-bottom: 36px; }
.menu-category h2 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
}

.menu-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.menu-item:last-child { border-bottom: none; }

.menu-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.menu-item-info { flex: 1; }
.menu-item-title {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  gap: 10px;
}
.menu-item-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.price { color: var(--color-primary); white-space: nowrap; font-weight: 700; }
.price.price-tba { color: var(--color-text-muted); font-weight: 500; font-size: 0.9em; }

table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
table.hours td:first-child { font-weight: 600; width: 40%; }

table.hours .day-note { opacity: 0.75; font-weight: 500; font-size: 0.92em; }

table.hours tr.hours-row-open td { color: #1a5c2a; }
table.hours tr.hours-row-closed td { color: #8a2314; }
table.hours tr.hours-row-closing-soon td { color: #8a5c00; font-weight: 700; }
table.hours tr.hours-row-open,
table.hours tr.hours-row-closed,
table.hours tr.hours-row-closing-soon {
  border-radius: var(--radius);
}
table.hours tr.hours-row-open td:first-child::before,
table.hours tr.hours-row-closed td:first-child::before,
table.hours tr.hours-row-closing-soon td:first-child::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
}
table.hours tr.hours-row-open td:first-child::before { background: #2e9e46; }
table.hours tr.hours-row-closed td:first-child::before { background: #c73a20; }
table.hours tr.hours-row-closing-soon td:first-child::before { background: #e0a000; }

@media (prefers-color-scheme: dark) {
  table.hours tr.hours-row-open td { color: #8fe3a6; }
  table.hours tr.hours-row-closed td { color: #f0a595; }
  table.hours tr.hours-row-closing-soon td { color: #f2cd7a; }
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  margin-top: 40px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a { margin-left: 16px; color: var(--color-text-muted); }
.footer-links a:first-child { margin-left: 0; }

form.stacked label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}
form.stacked input[type=text],
form.stacked input[type=email],
form.stacked input[type=tel],
form.stacked input[type=password],
form.stacked input[type=number],
form.stacked input[type=file],
form.stacked textarea,
form.stacked select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
}
form.stacked textarea { min-height: 100px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 16px;
}
.btn:hover { background: var(--color-primary-dark); }
.btn.btn-danger { background: #a8340f; }
.btn.btn-secondary { background: var(--color-text-muted); }
.btn.btn-small { padding: 6px 12px; font-size: 0.9rem; margin-top: 0; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.alert-success { background: #e2f5e6; color: #1a5c2a; border: 1px solid #b9e6c3; }
.alert-error { background: #fbe4e0; color: #8a2314; border: 1px solid #f3bcb0; }

.admin-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-nav a {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
}
.admin-nav a:hover { border-color: var(--color-primary); }

.kat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.item-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.item-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.item-row .info { flex: 1; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.inline-form { display: inline; }

.legal-text { white-space: pre-wrap; }

.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.hours-day-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
  font-weight: 600;
  margin: 0;
}
.hours-row input[type=time] {
  width: auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.status-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge.status-open { color: #1a5c2a; border-color: #b9e6c3; background: #e2f5e6; }
.status-badge.status-open .dot { background: #2e9e46; }
.status-badge.status-closing-soon { color: #8a5c00; border-color: #f3dca0; background: #fff3d9; }
.status-badge.status-closing-soon .dot { background: #e0a000; }
.status-badge.status-closed { color: #8a2314; border-color: #f3bcb0; background: #fbe4e0; }
.status-badge.status-closed .dot { background: #c73a20; }

@media (prefers-color-scheme: dark) {
  .status-badge.status-open { color: #8fe3a6; background: #163821; border-color: #245c34; }
  .status-badge.status-closing-soon { color: #f2cd7a; background: #3a2e0f; border-color: #5c4a19; }
  .status-badge.status-closed { color: #f0a595; background: #3a1a13; border-color: #5c2a1e; }
}
