/* =========================
   GENEL AYARLAR – MACKBEAR ORMAN TEMA (BASE)
   ========================= */
:root {
  --bg-body: #0E1113;
  --bg-header: #0E1113;
  --bg-surface: #1E2A2F;
  --bg-card: #1F2C32;
  --bg-card-soft: #26343A;
  --bg-pill: rgba(18, 24, 28, 0.9);

  --text-main: #D9DDDE;
  --text-muted: #8C969C;
  --text-dark: #F2F4F5;
  --text-accent: #F2F4F5;

  --accent: #C5A76D;
  --accent-strong: #B18A3F;
  --accent-red: #ef4444;
  --accent-soft: rgba(197, 167, 109, 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.85);

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

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

@media (min-width: 768px) {
  html {
    overflow-y: scroll;
  }
}

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

/* Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #0A0F14;
}
body::-webkit-scrollbar-thumb {
  background: #2B343A;
  border-radius: 999px;
}

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

/* Main padding */
main {
  padding: 16px 24px 32px;
}

/* =========================
   HEADER
   ========================= */
.menu-header {
  background:
    radial-gradient(circle at top left, rgba(174, 187, 194, 0.22), transparent 55%),
    radial-gradient(circle at top right, rgba(110, 126, 135, 0.3), transparent 60%),
    linear-gradient(180deg, #0E1113, #05080B);
  padding: 18px 24px 32px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.04);
}

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

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header chip */
.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(197, 167, 109, 0.7);
  background: rgba(18, 24, 28, 0.96);
  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: #15181b;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Dil seçimi */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(18, 24, 28, 0.96);
  border: 1px solid rgba(197, 167, 109, 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: #15181b;
}

/* Marka rozeti */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 24, 28, 0.96);
  border: 1px solid rgba(197, 167, 109, 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%, #9E7D3A 45%, #5B4A2C 95%);
}

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

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

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

/* Powered by – aynı görünürlük, aynı ton */
.powered-by {
  margin-top: 6px;
  font-size: 11px;
}

.powered-by a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.powered-by a:hover {
  color: var(--accent);
}


/* =========================
   MODAL
   ========================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 8, 0.9);
  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: var(--bg-surface);
  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: #101822;
  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: var(--text-muted);
}

.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: var(--text-muted);
  text-align: right;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #0B0F12;
  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;
  }

  main {
    padding-inline: 14px;
  }
}
