/* ==========================================================================
   QR Menü — temel katman
   Reset + tasarım değişkenleri. menu.css ve admin.css bunun üzerine kurulur.

   TASARIM YÖNÜ: "açık lüks" / modern fine-dining.
   Soğuk gri-mavi yerine sıcak fildişi zemin, espresso mürekkep ve
   antik altın vurgu. Derinlik ağır gölgeden değil, kıl payı kenarlık +
   katmanlamadan geliyor.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Yazı aileleri ─────────────────────────────────────────────
     Tek aile: Urbanist. --font-display ayrı bir token olarak duruyor
     ki başlıklar (marka adı, ürün adı, fiyat) tek satır değiştirilerek
     ayrı bir aileye alınabilsin; şimdilik ikisi de aynı. */
  --font-ui:      'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-ui);

  /* ── Marka ─────────────────────────────────────────────────────
     Altın; sarıya değil, eskitilmiş pirince yakın. */
  --accent:        #c8a45c;
  --accent-mid:    #ab8438;
  --accent-dark:   #8a6a25;
  --accent-soft:   #f7f0e2;
  --dark:          #1b1714;

  /* ── Yüzeyler ───────────────────────────────────────────────── */
  --bg:            #f7f4ee;   /* sıcak fildişi */
  --surface:       #ffffff;
  --surface-2:     #f1ece2;
  --border:        #e8e1d4;
  --border-strong: #d6cbb7;

  /* ── Metin ──────────────────────────────────────────────────── */
  --text:          #1f1b16;   /* espresso — saf siyah değil */
  --text-2:        #6a6154;
  --text-3:        #9c9384;

  /* ── Durum ──────────────────────────────────────────────────── */
  --red:           #b4322c;
  --red-soft:      #fbeceb;
  --green:         #0e7c58;
  --green-soft:    #e5f4ed;
  --amber:         #8a6a25;
  --amber-soft:    #f7ecd4;

  /* ── Biçim ──────────────────────────────────────────────────── */
  /* Yarıçaplar kademeli: küçük öğe keskin, büyük yüzey yumuşak.
     Her şeye aynı yarıçapı vermek "şablon" hissi yaratıyor. */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Gölgeler sıcak tonda — nötr gri gölge fildişi zeminde kirli görünüyor */
  --shadow-sm: 0 1px 2px rgba(60, 45, 25, .05), 0 2px 6px rgba(60, 45, 25, .04);
  --shadow-md: 0 6px 22px rgba(60, 45, 25, .09);
  --shadow-lg: 0 18px 56px rgba(40, 30, 16, .22);

  /* ── Hareket ────────────────────────────────────────────────── */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --dur-fast: .14s;
  --dur-base: .24s;

  /* Güvenli alan (çentik / home bar) */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* Dokunmatik hedef minimumu (WCAG 2.2 AA) */
  --tap: 44px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { background: none; border: none; cursor: pointer; }

a { color: inherit; }

/* Klavye ile gezinenler için görünür odak; fare/dokunmatikte gizli */
:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ekran okuyucuya özel metin */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hareket hassasiyeti */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Yatay kaydırma barını gizle (kategori şeridi) */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Yükleniyor iskeleti — sabit opaklık yanıp sönmesi yerine ışık süpürmesi */
@keyframes skeleton-sweep {
  0%   { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}
.skeleton {
  background: var(--surface-2);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, .85) 50%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  border-radius: var(--r-sm);
  animation: skeleton-sweep 1.5s ease-in-out infinite;
}
