/* ============================================================================
   NeYemeli katmanlı CSS — 1/4: base.css
   İçerik: design token'lar (:root), reset, tipografi, topbar/header, içerik kabı.
   KURAL: Yükleme sırası base → components → detail → pages (cascade buna güvenir).
   Yeni kural eklerken konusuna uyan dosyaya ekle; dosyalar arası taşıma YAPMA
   (sıra değişirse ezme davranışı bozulur). / Layered CSS 1/4: tokens, reset,
   typography, topbar, content shell. Load order is part of the contract.
   ============================================================================ */
/* Base / Temel */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.45);
  --brand: #f97316;
  --brand2: #ea580c;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 22px;
  --app-shell-max: 1000px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

 [hidden] {
  display: none !important;
 }

a {
  color: inherit;
  text-decoration: none;
}

.app {
  min-height: 100dvh;
}

/* Topbar / Üst alan */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  color: rgba(255, 255, 255, 0.92);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-width: none;
  margin: 0;
}

.topbar__row--primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

 .topbar__row--primary > * {
  min-width: 0;
 }

 .topbar #btnMenu,
 .topbar .topbar__back {
  width: 44px;
  height: 44px;
  border: none;
  justify-self: start;
 }

 .topbar #btnMenu i {
  font-size: 22px;
 }

 .topbar .topbar__back {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
 }

 .topbar .topbar__back i {
  font-size: 22px;
 }

 .topbar #btnSearchToggle i,
 .topbar #btnFavorites i,
 .topbar #btnRestaurantSearchToggle i {
  font-size: 19px;
 }

 .topbar #btnFavorites,
 .topbar #btnSearchToggle,
 .topbar #btnRestaurantSearchToggle {
  border: none;
 }

.topbar__row--secondary {
  margin-top: 10px;
}

.search--header {
  flex: 1 1 auto;
}

.search--header .search__input {
  height: 38px;
  border-radius: 999px;
}

.topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
  justify-self: center;
  grid-column: 2;
}

.brand--link {
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  height: 56px;
  width: auto;
  max-width: min(60vw, 260px);
  object-fit: contain;
  display: block;
}

.brand__text {
  min-width: 0;
}

.brand__title {
  font-weight: 800;
  font-size: 14px;
}

.brand__subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Restoran detay: kaydırınca üst barın altında tam genişlik başlık şeridi */
.rest-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--rest-topbar-h, 88px);
  z-index: 19;
  margin: 0;
  padding: 11px max(16px, env(safe-area-inset-left)) 11px max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-0.35rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s step-end;
}

.rest-stickybar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s step-start;
}

.rest-stickybar__text {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sticky çubuk içeriği: yıldız + ad + mutfak / sticky bar content */
.rest-stickybar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.rest-stickybar__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.rest-stickybar__name {
  min-width: 0;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rest-stickybar__cuisine {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.topbar .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.topbar .pill--outline {
  border-color: rgba(255, 255, 255, 0.18);
}

.pill--outline {
  border-color: rgba(148, 163, 184, 0.55);
}

.pill__icon {
  color: var(--brand);
}

.topbar .pill__icon {
  color: rgba(255, 255, 255, 0.9);
}

.pill__chev {
  color: rgba(100, 116, 139, 0.7);
}

.topbar .pill__chev {
  color: rgba(255, 255, 255, 0.72);
}

.topbar__search {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.topbar__search .search {
  width: 100%;
  max-width: none;
  margin: 0;
}

.search {
  position: relative;
  display: block;
}

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(100, 116, 139, 0.75);
}

.topbar.is-search-open .topbar__search {
  display: block;
}

.topbar .search__icon {
  color: rgba(255, 255, 255, 0.62);
}

.search__input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  padding: 0 14px 0 40px;
  font-size: 14px;
  outline: none;
}

.topbar .search__input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.topbar .search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search__input:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.15);
}

/* Header aramasında turuncu vurgu/gölge olmasın, nötr beyaz kalsın */
/* No orange highlight/glow on header search; stays neutral white */
.topbar .search__input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.search--tight .search__input {
  height: 44px;
  border-radius: 14px;
}

/* Şehir arama kutusunda turuncu hale/gölge olmasın; odak yalnızca kenarlıkla belli olsun /
   no orange glow around the city search box; focus is shown by the border alone */
.search--tight .search__input:focus {
  box-shadow: none;
}

.topbar__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.cta {
  border-radius: 18px;
  padding: 14px 14px;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta__kicker {
  font-size: 12px;
  opacity: 0.9;
}

.cta__title {
  margin-top: 6px;
  font-weight: 800;
  font-size: 14px;
}

.cta--orange {
  background: linear-gradient(135deg, var(--brand2), var(--brand));
}

.cta--dark {
  background: linear-gradient(135deg, #0f172a, #334155);
}

/* Content / İçerik — tam genişlik veya en fazla 1000px */
.content {
  width: 100%;
  max-width: var(--app-shell-max);
  margin: 0 auto;
  padding: 16px;
  /* Alt sabit tab bar + ortadaki çark FAB'ı için yeterli boşluk (nav 66px + FAB taşması ~17px + pay) /
     room for the fixed bottom tab bar + center wheel FAB */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .topbar__search .search {
    max-width: none;
  }
}

.content--detail {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}

.block--tighttop {
  padding-top: 0;
  margin-top: 0;
}

.section {
  margin-top: 10px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
/* Başlık yanında mekan sayısı (ör. "Gaziantep Mekanlar · 20") / venue count beside the title */
.section__title-count {
  font-size: 12.5px; /* başlıktan belirgin küçük / clearly smaller than the title */
  font-weight: 600;
  color: var(--muted);
}
/* Filtre barı boşsa yer kaplamasın (sayaç başlığa, buton head'e taşındı) / hide the now-empty filter bar */
.rest-filters:empty {
  display: none;
}

.content--index {
  padding-top: 92px;
}

.content--no-bottomnav {
  padding-bottom: 24px;
}

.section__desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.section__count {
  font-size: 12px;
  font-weight: 800;
  color: rgba(100, 116, 139, 0.85);
}

.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Boş durum kartı 2 kolonlu .list grid'inde tek kolona SIKIŞMASIN — tüm satırı kaplasın /
   empty-state must span the whole row of the 2-column list grid, not sit narrow on the left */
.list > .empty-state { grid-column: 1 / -1; }

