/* Okeye Dördüncüm: ortak stil. Renkler uygulamadaki logo paletinden. */
:root {
  --bg: #0e1a16;
  --bg2: #0a130f;
  --card: #16261f;
  --card2: #1c3128;
  --line: rgba(241, 232, 216, 0.1);
  --gold: #f2b233;
  --gold-d: #d99a1f;
  --on-gold: #1b1405;
  --cream: #f1e8d8;
  --muted: #a9b5ad;
  --green: #3fae6a;
  --red: #e0533d;
  --wood: #7a4320;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }

/* Düğmeler */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 1rem 'Nunito', sans-serif;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #ffc24d; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(241, 232, 216, 0.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-red { background: transparent; color: var(--red); border-color: rgba(224, 83, 61, 0.5); }
.btn-sm { padding: 7px 14px; font-size: 0.88rem; }

/* Üst menü */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 22, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font: 800 1.2rem 'Baloo 2', sans-serif; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--cream); font-weight: 700; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
@media (max-width: 760px) {
  .nav-links a.hide-m { display: none; }
}

/* Kartlar, alanlar */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
label.f { display: block; margin-bottom: 14px; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  background: var(--bg2);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 600 1rem 'Nunito', sans-serif;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
input[type='checkbox'] { width: auto; margin: 0 8px 0 0; accent-color: var(--gold); }
textarea { resize: vertical; min-height: 84px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font: 800 0.76rem 'Nunito', sans-serif;
  background: rgba(241, 232, 216, 0.1);
}
.chip.ok { background: rgba(63, 174, 106, 0.18); color: var(--green); }
.chip.warn { background: rgba(242, 178, 51, 0.18); color: var(--gold); }
.chip.bad { background: rgba(224, 83, 61, 0.18); color: var(--red); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  background: var(--cream);
  color: #1b1405;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer { border-top: 1px solid var(--line); padding: 38px 0; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }

/* Panel sayfaları (admin, işletme) */
.panel-wrap { width: min(1040px, 100% - 32px); margin: 28px auto 80px; }
.gate { max-width: 460px; margin: 12vh auto; text-align: center; }
.gate img { width: 96px; margin: 0 auto 18px; border-radius: 24px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font: 800 0.95rem 'Nunito', sans-serif;
  cursor: pointer;
}
.tab.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.list { display: grid; gap: 12px; }
.item {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.item .grow { flex: 1 1 240px; min-width: 0; }
.item h4 { margin: 0 0 2px; font-size: 1.1rem; }
.item small { color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 14px; margin: 10px 0 14px; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.modal-bg {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65);
  display: grid; place-items: center; padding: 16px; z-index: 80; overflow: auto;
}
.modal {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.menu-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 0.8fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.menu-row input { margin: 0; }
.menu-row .menu-desc { grid-column: 1 / -1; margin-bottom: 8px; }
.tab .chip { margin-left: 6px; }
@media (max-width: 760px) {
  .menu-row { grid-template-columns: 1fr 1fr; }
}
.map { height: 280px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 14px; }
.plan-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-line:last-child { border-bottom: 0; }
