/* ============================================================
   MasFlow — base.css
   Ortak CSS değişkenleri, reset, tipografi
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&family=Space+Grotesk:wght@300;400;500;600&family=Syne:wght@400;600;700&display=swap');

/* ── TEMA DEĞİŞKENLERİ ── */
:root {
  /* Müşteri (açık tema) */
  --c-bg:         #faf7f2;
  --c-surface:    #ffffff;
  --c-card:       #f3ede4;
  --c-border:     #e8ddd0;
  --c-text:       #1a1208;
  --c-muted:      #8a7660;
  --c-gold:       #a0722a;
  --c-gold-l:     #c9963a;
  --c-gold-d:     #d4b896;

  /* Admin (koyu tema) */
  --a-bg:         #0d1117;
  --a-surface:    #161b22;
  --a-card:       #1e2530;
  --a-border:     #2d3748;
  --a-text:       #e6edf3;
  --a-muted:      #8b949e;
  --a-gold:       #e8a838;
  --a-gold-l:     #f5c866;
  --a-gold-d:     #a06820;

  /* Durum renkleri (ortak) */
  --status-available: #3fb950;
  --status-occupied:  #f85149;
  --status-reserved:  #d29922;
  --status-dirty:     #8b949e;
  --status-pending:   #d29922;
  --status-preparing: #58a6ff;
  --status-ready:     #3fb950;
  --status-served:    #8b949e;
  --status-cancelled: #f85149;

  /* Boyutlar */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

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

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

/* ── TİPOGRAFİ ── */
.font-display  { font-family: 'Playfair Display', serif; }
.font-sans     { font-family: 'DM Sans', sans-serif; }
.font-grotesk  { font-family: 'Space Grotesk', sans-serif; }
.font-syne     { font-family: 'Syne', sans-serif; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 2px; }

/* ── SPINNER ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--c-gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ANIMASYONLAR ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(248,81,73,0); }
  50%      { box-shadow: 0 0 0 4px rgba(248,81,73,.2); }
}

.anim-fadeup  { animation: fadeUp .3s ease both; }
.anim-fadein  { animation: fadeIn .3s ease both; }
.anim-pop     { animation: pop .5s cubic-bezier(.32,1.6,.6,1); }

/* ── PWA / mobil dikey: brand adı gizle, logo yeterli ── */
@media (max-width: 600px) and (orientation: portrait) {
  .brand-slot .brand-name,
  .brand-slot .brand-slogan,
  .header-brand .brand-name,
  .lay-logo .brand-name,
  .login-brand .brand-name { display: none !important; }
}
