@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg: #ffe4e1;
  /* Soft pink background to contrast hard edges */
  --card: #ffffff;
  --ink: #000000;
  --muted: #4b5563;
  --accent: #8B0000;
  /* Dark Red */
  --accent-2: #22d3ee;
  /* Cyan contrast */
  --accent-3: #FFC300;
  /* Retro Gold/Coin Yellow */
  --border: 3px solid #000000;
  --shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
  --shadow-hover: 6px 6px 0px rgba(0, 0, 0, 0.4);
  --shadow-active: 2px 2px 0px rgba(0, 0, 0, 0.4);
  --radius: 0px;
  /* brutalism often drops rounded corners, or uses very sharp/square ones */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fce4ec;
  /* A slight pink-white to match the retro arcade aesthetic better */
  background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  /* Make dots gentler */
  background-size: 20px 20px;
  color: var(--ink);
  font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
  /* ATARI FONT */
  min-height: 100vh;
  line-height: 1.6;
  /* Increased line-height for better flow */
  letter-spacing: -0.5px;
  /* Squeeze tracking slightly globally to prevent overcrowding */
}

.app-shell {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  border-left: var(--border);
  border-right: var(--border);
  position: relative;
  box-shadow: 10px 0 0px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   HEADER
   ========================================================= */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--accent);
  border-bottom: var(--border);
  border-top: var(--border);
  position: sticky;
  top: -3px;
  z-index: 100;
  margin-top: -3px;
}

.mobile-header .left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: cover;
  border: var(--border);
  box-shadow: 2px 2px 0px #000;
}

.brand {
  min-width: 0;
}

.brand .title {
  font-weight: 500;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.4;
  color: #ffffff;
}

/* Tighter spacing */
.brand .subtitle {
  font-size: 7px;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0px;
}

.right {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: max-content;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: var(--border);
  background: var(--card);
  color: var(--ink); /* Black icon on white button */
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.1s;
}

.icon-btn:hover {
  background: var(--accent-2);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.icon-btn:active {
  transform: translate(4px, 4px);
  box-shadow: var(--shadow-active);
}

/* LANGUAGE MENU */
.lang {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 0;
  display: none;
  z-index: 99999 !important;
  min-width: 140px;
}

.lang-menu a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  border-bottom: var(--border);
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.lang-menu a:last-child {
  border-bottom: none;
}

.lang-menu a:hover {
  background: var(--accent);
}
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

/* NOTIFICATION BUTTON */
.notif-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--card);
  border: var(--border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.1s;
}

.notif-btn svg {
  color: var(--ink);
  stroke: var(--ink);
  fill: var(--ink);
  /* FIXED EMOJI/ICON VISIBILITY */
}

.notif-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
  background: var(--accent-2);
}

.notif-btn:active {
  transform: translate(4px, 4px);
  box-shadow: var(--shadow-active);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f43f5e;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 0;
  line-height: 1.2;
  border: 2px solid #000;
  box-shadow: 2px 2px 0px #000;
}

/* =========================================================
   SEARCH
   ========================================================= */
.search-row {
  display: flex;
  gap: 10px;
  padding: 16px;
  position: relative;
  z-index: 50;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  padding: 12px 16px;
  border: var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.1s;
}

.search:focus-within {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
  background: #fffde7;
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  flex: 1;
  font-weight: 500;
  font-family: 'Press Start 2P', system-ui;
  letter-spacing: -0.5px;
}

.search input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.search .lupa {
  opacity: 1;
  color: var(--ink);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: var(--card);
  border: var(--border);
  box-shadow: 6px 6px 0px #000;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: var(--border);
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li img {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: cover;
  border: 2px solid #000;
}

.search-results li:hover {
  background: var(--accent-2);
}

.search-results .title {
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.search-results .price {
  margin-left: auto;
  font-weight: 500;
  font-size: 10px;
  background: var(--accent);
  padding: 4px 8px;
  border: 2px solid #000;
}

/* =========================================================
   PILLS
   ========================================================= */
.pill-tabs {
  display: flex;
  gap: 16px;
  /* slightly more gap to differentiate sections better */
  overflow-x: auto;
  padding: 4px 16px 20px;
  scrollbar-width: none;
}

.pill-tabs::-webkit-scrollbar {
  display: none;
}

.pill {
  flex-shrink: 0;
  padding: 14px 24px;
  border-radius: 0;
  border: var(--border);
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
  /* SIGNIFICANTLY BIGGER PİLL HEADER SIZE */
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.1s;
  font-family: 'Press Start 2P', system-ui;
  text-align: left;
  /* Headers should align left */
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.pill:hover {
  background: var(--accent);
  /* Red */
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.pill.active {
  background: var(--accent-3);
  /* Yellow */
  color: #000;
  transform: translate(4px, 4px) rotate(-1.5deg);
  /* Added slight tilt like the banner */
  box-shadow: var(--shadow-active);
}

/* =========================================================
   ACCORDION CATEGORIES (QR System)
   ========================================================= */
.qr-cat {
  margin-bottom: 20px; /* Vertical separation between categories */
  border: var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   PROMO
   ========================================================= */
.promo {
  margin: 0 16px 24px;
  background: var(--accent-2);
  border: var(--border);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.promo-hero {
  position: relative;
  min-height: 220px;
  padding: 30px 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #111;
}

/* CRT Scanline Overlay */
.promo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.05) 2px,
      transparent 2px,
      transparent 4px);
  z-index: 1;
  pointer-events: none;
}

/* Vignette + Brand Overlay Combo */
.promo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%), var(--accent);
  mix-blend-mode: multiply;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.promo-hero .h1 {
  font-family: 'Press Start 2P', system-ui;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 16px;
  text-transform: uppercase;
  z-index: 2;
  position: relative;
  background: #FFC300;
  /* Retro Gold-Yellow */
  color: #000;
  padding: 12px 18px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
}

.promo-hero:hover .h1 {
  transform: rotate(0deg) scale(1.02);
}

.promo-hero .h2 {
  font-family: 'Press Start 2P', system-ui;
  font-size: 9px;
  font-weight: 500;
  margin: 0;
  z-index: 2;
  position: relative;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border: 3px solid #000;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.4);
  display: inline-block;
  line-height: 1.6;
  letter-spacing: 0px;
  transform: rotate(1deg);
  transition: transform 0.2s ease;
}

.promo-hero:hover .h2 {
  transform: rotate(0deg);
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px 20px;
  /* Increased vertical padding for more breathing room */
  margin-top: 16px;
  /* Added more space above the header */
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  /* Made even bigger */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Increased letter-spacing for a stretched retro look */
  text-shadow: 2px 2px 0px #fff;
  -webkit-text-stroke: 1px #000;
  line-height: 1.4;
}

.see-all {
  color: var(--ink);
  background: var(--accent);
  padding: 4px 10px;
  border: 2px solid #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #000;
  transition: 0.1s;
  letter-spacing: -0.5px;
}

.see-all:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000;
}

/* =========================================================
   ACCORDION
   ========================================================= */
.accordion-header {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  margin: 10px 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.1s;
  user-select: none;
}

.accordion-header h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.5px;
  -webkit-text-stroke: 0.5px #000;
  text-shadow: none;
}

.accordion-header:hover {
  background: var(--accent-3); /* Yellow */
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.accordion-header.open {
  background: var(--accent-3);
  box-shadow: 2px 2px 0px #000;
  transform: translate(2px, 2px);
  margin-bottom: 0;
}

.accordion-header.open .acc-icon {
  transform: rotate(0deg);
}

.accordion-body {
  border-bottom: var(--border);
  background: rgba(0, 0, 0, 0.03);
  padding-top: 16px;
}

/* Pulse for search focus */
@keyframes pulseBox {
  0% { box-shadow: 0 0 0 0 rgba(0,0,0,.28); }
  100% { box-shadow: 0 0 0 14px rgba(0,0,0,0); }
}
.food-card.pulse { animation: pulseBox .8s ease-out; }


/* =========================================================
   CARDS
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 16px 24px;
}

.food-card {
  background: var(--card);
  border: var(--border);
  border-radius: 0;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.1s;
  text-decoration: none;
  color: inherit;
}

.food-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.4);
}

.food-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.4);
}

.food-card img,
.img-ph {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--accent-2);
  flex-shrink: 0;
  border-bottom: var(--border);
}

.img-ph {
  display: grid;
  place-items: center;
  font-size: 40px;
  color: #000;
}

.fav {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 2px 2px 0px #000;
  cursor: pointer;
  transition: 0.1s;
  z-index: 2;
}

.fav:hover {
  background: var(--accent-3);
}

.fav:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000;
}

.fav.active {
  background: var(--accent-3);
}

.fav.active::after {
  content: '🖤';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.fav::after {
  content: '🤍';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: grayscale(1);
  font-size: 14px;
}

.food-card .info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.food-card h3 {
  margin: 0 0 8px 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.food-card .desc {
  font-size: 7px;
  color: var(--muted);
  margin-top: 0;
  min-height: 38px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 2px solid #000;
}

.price {
  font-weight: 500;
  font-size: 11px;
  color: #fff;
  background: #c62828;
  padding: 6px 8px;
  border: 2px solid #000;
  letter-spacing: -0.5px;
}

.price .cur {
  opacity: 1;
  font-size: 9px;
  margin-right: 2px;
}

.rating {
  font-weight: 500;
  color: var(--ink);
  border: 2px solid #000;
  padding: 2px 6px;
  background: #fff;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  border-top: var(--border);
  background: var(--accent);
  text-transform: uppercase;
  line-height: 2;
  letter-spacing: -0.2px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

/* =========================================================
   POPUP (General classes for notifications)
   ========================================================= */
.notif-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.notif-card {
  background: var(--accent);
  border: var(--border);
  border-radius: 0;
  padding: 32px;
  text-align: center;
  width: min(340px, 90vw);
  box-shadow: 12px 12px 0px #000;
  position: relative;
}

.notif-card h3 {
  color: #ffffff;
  margin: 12px 0 12px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 4px solid #000;
  display: inline-block;
  padding-bottom: 4px;
  letter-spacing: -1px;
}

.notif-card p {
  font-size: 10px;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
  background: #fff;
  padding: 12px;
  border: 2px solid #000;
  letter-spacing: -0.5px;
}

.notif-icon {
  font-size: 60px;
  margin-bottom: 16px;
  background: #fff;
  border: 4px solid #000;
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 4px 4px 0 #000;
}

/* =========================================================
   PRODUCT MODAL
   ========================================================= */
.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  animation: fade 0.2s;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pm-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 440px);
  max-height: 85vh;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: var(--border);
  border-radius: 0;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
  /* Fixed broken massive shadow */
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.pm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--accent-3);
  border: var(--border);
  box-shadow: 4px 4px 0px #000;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.1s;
  z-index: 10;
  font-family: 'Press Start 2P', system-ui;
}

.pm-close:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000;
}

.pm-media {
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: var(--border);
}

.pm-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.pm-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  background: var(--bg);
}

.pm-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
  background: #fff;
  border: 2px solid #000;
  padding: 12px 12px;
  box-shadow: 4px 4px 0 #000;
  letter-spacing: -1px;
}

.pm-desc {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
  font-size: 10px;
  font-weight: 500;
  white-space: pre-line;
  background: #fff;
  padding: 12px;
  border: 2px solid #000;
  /* Düz Çizgi */
  letter-spacing: -0.5px;
}

.pm-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 4px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-price {
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  /* Beyaz yazı */
  background: #c62828;
  /* Kırmızı arkaplan */
  padding: 8px 16px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  letter-spacing: -1px;
}
