/* =========================
   GENEL AYARLAR – KUMRUCU ŞEKKOO TEMA (BASE)
   ========================= */
:root {
  --bg-body: #050505;
  --bg-header: #050505;
  --bg-surface: #080808;
  --bg-card: #ffffff;
  --bg-card-soft: #f5f7f9;
  --bg-pill: rgba(0, 0, 0, 0.7);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  --text-accent: #ffffff;

  --accent: #fbbf24;
  --accent-strong: #f97316;
  --accent-red: #ef4444;
  --accent-soft: rgba(251, 191, 36, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.75);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.8);

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.26s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #111111 0, #000000 55%);
  color: var(--text-main);
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #02040a;
}
body::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 999px;
}

/* App container */
.app {
  min-height: 100vh;
}

/* =========================
   HEADER (TÜM SAYFALAR)
   ========================= */
.menu-header {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 55%),
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.3), transparent 60%),
    linear-gradient(180deg, #050505, #020202);
  padding: 18px 24px 32px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.06);
}

@media (min-width: 960px) {
  .menu-header {
    padding: 22px 64px 40px;
  }
}

/* =========================
   TOP BAR – LOGO + BUTONLAR + DİL
   ========================= */
.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

/* Sol blok (logo + menü linkleri) */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(248, 250, 252, 0.15);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.75);
}

/* Menü linkleri */
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header chip / buton */
.allergen-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.6);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.allergen-link[data-i18n="allergen_link"]::before {
  content: "ℹ";
  font-size: 12px;
}

.allergen-link:hover {
  background: var(--accent);
  color: #1f2933;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Dil seçimi */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.lang-btn {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent);
  color: #111827;
}

/* Marka rozeti */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.7);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent) 0%, #f97316 40%, #b91c1c 90%);
}

/* Başlık & alt başlık */
.menu-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fefce8;
}

.menu-subtitle {
  margin: 8px 0 24px;
  max-width: 520px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================
   FOOTER
   ========================= */
.menu-footer {
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.9);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  background: #000000;
}

/* =========================
   MODAL
   ========================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-med), visibility var(--transition-med);
  z-index: 60;
}

.modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
}

.modal-image-placeholder {
  height: 260px;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
}

.modal-body {
  padding: 18px 18px 16px;
}

#dish-modal-title {
  margin: 0 0 6px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#dish-modal-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: #4b5563;
}

.modal-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
}

.modal-price {
  font-weight: 600;
  font-size: 16px;
}

.modal-allergens {
  color: #6b7280;
  text-align: right;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #000000;
  color: #f9fafb;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 640px) {
  .menu-header {
    padding-inline: 14px;
  }

  .top-bar {
    flex-direction: row;
    justify-content: space-between;
  }

  .brand-logo img {
    height: 40px;
    width: 40px;
  }

  .top-bar-left {
    gap: 10px;
  }

  .modal {
    max-width: 96vw;
    border-radius: 18px;
  }

  .modal-image-placeholder {
    height: 220px;
  }
}