/* ==========================================================================
   DOSTLAR YARIMASIR ET MANGAL - QR MENÜ
   Sade, hızlı, ürün + fiyat odaklı dijital menü tasarımı.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --qr-bg: #06080b;
  --qr-surface: #0c0f16;
  --qr-card: #121620;
  --qr-card-hover: #181d2a;
  --qr-card-inner: #0f131c;

  --qr-ember: #ea580c;
  --qr-ember-bright: #ff6a1f;
  --qr-ember-glow: rgba(234, 88, 12, 0.4);
  --qr-ember-subtle: rgba(234, 88, 12, 0.12);

  --qr-gold: #e5a93c;
  --qr-gold-bright: #fde047;
  --qr-gold-glow: rgba(229, 169, 60, 0.3);
  --qr-gold-subtle: rgba(229, 169, 60, 0.1);

  --qr-text: #ffffff;
  --qr-text-body: #f1f5f9;
  --qr-text-muted: #94a3b8;
  --qr-text-dim: #64748b;

  --qr-border: rgba(255, 255, 255, 0.08);
  --qr-border-subtle: rgba(255, 255, 255, 0.05);
  --qr-border-gold: rgba(229, 169, 60, 0.35);
  --qr-border-active: rgba(234, 88, 12, 0.5);

  --qr-radius: 18px;
  --qr-radius-sm: 12px;
  --qr-radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 36px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body.qr-body {
  background-color: var(--qr-bg);
  color: var(--qr-text-body);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
  padding-bottom: 50px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(229, 169, 60, 0.04) 0%, transparent 40%);
}

/* ==========================================================================
   HERO / ATMOSPHERE COVER HEADER
   ========================================================================== */
.qr-app-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--qr-border-gold);
  background: #090c12;
}

.qr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.qr-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(1.2);
  transform: scale(1.05);
}

.qr-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 11, 0.4) 0%, rgba(6, 8, 11, 0.85) 65%, #06080b 100%);
}

.qr-hero-content {
  position: relative;
  z-index: 2;
  padding: 16px 20px 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Top Navigation Bar inside Hero */
.qr-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.qr-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--qr-radius-pill);
  background: rgba(20, 25, 36, 0.75);
  border: 1px solid var(--qr-border);
  color: var(--qr-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.2s var(--ease-spring);
}

.qr-home-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
}

.qr-home-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Brand Showcase in Hero */
.qr-brand-showcase {
  text-align: center;
  margin-bottom: 4px;
}

.qr-brand-combo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: transform 0.25s var(--ease-spring);
}

.qr-brand-combo:active {
  transform: scale(0.97);
}

.qr-crest-emblem {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(229, 169, 60, 0.45));
}

.qr-brand-logo-img {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(229, 169, 60, 0.45));
}

.qr-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.qr-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.qr-brand-sub {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 3px;
}

.qr-sub-white {
  color: #e2e8f0;
}

.qr-sub-ember {
  color: #ea580c;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(234, 88, 12, 0.5);
}


/* ==========================================================================
   STICKY CONTROLS (SEARCH, VIEW TOGGLE, CATEGORIES)
   ========================================================================== */
.qr-sticky-controls {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 8, 11, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--qr-border);
  padding: 12px 0 6px;
}

.qr-search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
  max-width: 900px;
  margin: 0 auto;
}

.qr-search-box {
  flex: 1;
  position: relative;
}

.qr-search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--qr-text-dim);
  pointer-events: none;
}

.qr-search-field {
  width: 100%;
  background: var(--qr-surface);
  border: 1px solid var(--qr-border);
  border-radius: var(--qr-radius-pill);
  padding: 11px 40px 11px 44px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.qr-search-field:focus {
  border-color: var(--qr-ember);
  box-shadow: 0 0 0 3px var(--qr-ember-subtle);
  background: #0f131c;
}

.qr-search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qr-text-muted);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: none;
}

/* View Mode Switcher */
.qr-view-toggle {
  display: flex;
  background: var(--qr-surface);
  border: 1px solid var(--qr-border);
  border-radius: var(--qr-radius-pill);
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  background: none;
  border: none;
  color: var(--qr-text-dim);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.view-toggle-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.view-toggle-btn.active {
  background: var(--qr-card);
  color: var(--qr-gold-bright);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Kategori Şeridi — Ana sayfadaki hikaye şeridiyle aynı dilde: yuvarlak
   fotoğraflar, dönen gradient halka, kayan (snap) şerit. */
@property --qr-ring-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.qr-category-scroller {
  overflow-x: auto;
  padding: 6px 16px 10px;
  display: flex;
  gap: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 900px;
  margin: 0 auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.qr-category-scroller::-webkit-scrollbar {
  display: none;
}

.cat-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  scroll-snap-align: center;
  width: 68px;
}

.cat-circle-ring {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-spring);
}

.cat-circle-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--qr-ring-angle, 0deg), #7c8698, #3d4453, #7c8698, #3d4453, #7c8698);
  animation: qr-ring-spin 6s linear infinite;
  opacity: 0.7;
}

.cat-circle-btn.active .cat-circle-ring::before {
  background: conic-gradient(from var(--qr-ring-angle, 0deg), #fcd34d, #ea580c, #f97316, #9a3412, #fcd34d);
  opacity: 1;
}

@keyframes qr-ring-spin {
  to { --qr-ring-angle: 360deg; }
}

.cat-circle-btn:active .cat-circle-ring {
  transform: scale(0.94);
}

.cat-circle-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--qr-bg);
}

.cat-circle-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--qr-bg);
  background: var(--qr-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cat-circle-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--qr-text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 68px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-circle-btn.active .cat-circle-label {
  color: var(--qr-gold-bright);
}

/* Tag Scroller */
.qr-tag-scroller {
  display: flex;
  gap: 8px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 900px;
  margin: 0 auto;
}

.qr-tag-scroller::-webkit-scrollbar {
  display: none;
}

.qr-tag-btn {
  background: transparent;
  border: 1px solid var(--qr-border-subtle);
  color: var(--qr-text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--qr-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.qr-tag-btn.active {
  border-color: var(--qr-gold);
  color: var(--qr-gold-bright);
  background: var(--qr-gold-subtle);
}

/* ==========================================================================
   MENU CONTENT CONTAINER & DISH CARDS
   ========================================================================== */
.qr-content-wrapper {
  padding: 20px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.cat-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.cat-group-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.cat-group-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--qr-gold-bright);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   VIEW 1: LUXURY APPETITE CARDS (DEFAULT GRID)
   ========================================================================== */
.dishes-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 680px) {
  .dishes-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.dish-card-luxury {
  background: linear-gradient(135deg, rgba(22, 28, 40, 0.9) 0%, rgba(12, 15, 22, 0.95) 100%);
  border: 1px solid var(--qr-border);
  border-top: 1.5px solid rgba(229, 169, 60, 0.35);
  border-radius: var(--qr-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring), border-color 0.28s ease, box-shadow 0.28s ease;
}

.dish-card-luxury:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 169, 60, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

/* Visual Header */
.dish-card-visual {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #090c12;
}

.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-spring);
}

.dish-card-luxury:hover .dish-card-img {
  transform: scale(1.06);
}

.dish-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(12, 15, 22, 0.95) 100%);
}

.dish-floating-tag-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.dish-floating-tag-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.badge-pill-qr {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--qr-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.badge-gold-qr {
  background: rgba(229, 169, 60, 0.2);
  color: var(--qr-gold-bright);
  border: 1px solid var(--qr-border-gold);
}

.badge-fire-qr {
  background: rgba(234, 88, 12, 0.25);
  color: #ff8533;
  border: 1px solid var(--qr-border-active);
}

.badge-gram-qr {
  background: rgba(10, 12, 18, 0.75);
  color: #cbd5e1;
  border: 1px solid var(--qr-border);
  font-weight: 600;
}

/* Card Content Body */
.dish-card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.dish-card-header {
  margin-bottom: 14px;
}

.dish-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.dish-card-luxury:hover .dish-card-title {
  color: var(--qr-gold-bright);
}

.dish-card-desc {
  font-size: 0.84rem;
  color: var(--qr-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Bottom Footer */
.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--qr-border-subtle);
  margin-top: auto;
}

.dish-price-block {
  display: flex;
  flex-direction: column;
}

.dish-price-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--qr-gold-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dish-price-note {
  font-size: 0.72rem;
  color: var(--qr-text-dim);
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   VIEW 2: COMPACT LIST VIEW
   ========================================================================== */
.dishes-stack.compact-mode {
  grid-template-columns: 1fr;
  gap: 12px;
}

.dishes-stack.compact-mode .dish-card-luxury {
  flex-direction: row;
  border-top: 1px solid var(--qr-border);
}

.dishes-stack.compact-mode .dish-card-visual {
  width: 105px;
  height: auto;
  min-height: 105px;
  flex-shrink: 0;
}

.dishes-stack.compact-mode .dish-floating-tag-left,
.dishes-stack.compact-mode .dish-floating-tag-right {
  display: none;
}

.dishes-stack.compact-mode .dish-card-content {
  padding: 12px 14px;
}

.dishes-stack.compact-mode .dish-card-title {
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.dishes-stack.compact-mode .dish-card-desc {
  -webkit-line-clamp: 1;
  font-size: 0.78rem;
}

.dishes-stack.compact-mode .dish-price-val {
  font-size: 1.15rem;
}

/* ==========================================================================
   MODAL BACKDROP & DISH DETAIL SHEET
   ========================================================================== */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.qr-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.qr-sheet-panel {
  background: #0f131c;
  border: 1px solid var(--qr-border-gold);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-spring);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.8);
}

.qr-modal-backdrop.active .qr-sheet-panel {
  transform: translateY(0);
}

.sheet-media-header {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #090c12;
}

.sheet-media-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.sheet-inner-body {
  padding: 24px;
}

.sheet-dish-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.sheet-dish-grammage {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--qr-gold-bright);
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: var(--qr-radius-pill);
  background: var(--qr-gold-subtle);
  border: 1px solid var(--qr-border-gold);
}

.sheet-dish-desc {
  font-size: 0.95rem;
  color: var(--qr-text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sheet-price-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--qr-border);
}

.sheet-price-footer span {
  font-size: 0.9rem;
  color: var(--qr-text-muted);
  font-weight: 600;
}

.sheet-price-footer strong {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--qr-gold-bright);
  letter-spacing: -0.02em;
}
