/* ===================================================
   BAĞLUM TOST EVİ - QR MENÜ ÖZEL STİL DOSYASI
   Mobil Öncelikli, Modern & Hızlı Arayüz
   =================================================== */

:root {
  --bg-main: #0c0e12;
  --bg-card: #151821;
  --bg-card-hover: #1c212d;
  --bg-surface: #1e2330;
  --bg-surface-glass: rgba(26, 30, 42, 0.88);
  
  --primary: #ff5e14;
  --primary-light: #ff7a3d;
  --primary-glow: rgba(255, 94, 20, 0.35);
  
  --accent-amber: #f59e0b;
  --accent-gold: #fbbf24;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 94, 20, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 24px;
}

/* Arka Plan Dekoratif Işık */
body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 94, 20, 0.15) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===================================================
   ÜST BANNER & İŞLETME BAŞLIĞI (FLYER ESTETİĞİ)
   =================================================== */

.header-banner {
  position: relative;
  background: linear-gradient(180deg, #1b1310 0%, #151821 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 16px 20px;
  text-align: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.festive-lights {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.light-bulb {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 35% 35%;
  animation: pulse-light 2s infinite alternate;
}
.light-bulb:nth-child(1) { background: #ff4757; box-shadow: 0 0 10px #ff4757; animation-delay: 0s; }
.light-bulb:nth-child(2) { background: #ffa502; box-shadow: 0 0 10px #ffa502; animation-delay: 0.4s; }
.light-bulb:nth-child(3) { background: #2ed573; box-shadow: 0 0 10px #2ed573; animation-delay: 0.8s; }
.light-bulb:nth-child(4) { background: #1e90ff; box-shadow: 0 0 10px #1e90ff; animation-delay: 1.2s; }
.light-bulb:nth-child(5) { background: #eccc68; box-shadow: 0 0 10px #eccc68; animation-delay: 0.6s; }
.light-bulb:nth-child(6) { background: #ff6b81; box-shadow: 0 0 10px #ff6b81; animation-delay: 1s; }

@keyframes pulse-light {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.logo-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #2b170e 0%, #1c0e08 100%);
  border: 2px solid #e06c1b;
  border-radius: var(--radius-lg);
  padding: 10px 24px 8px;
  box-shadow: 0 4px 20px rgba(224, 108, 27, 0.3), inset 0 0 15px rgba(255, 140, 0, 0.2);
  margin-bottom: 12px;
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #ffd199, #ff7a3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-subtitle-ribbon {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffca28;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.brand-tagline {
  font-size: 0.92rem;
  color: #fed7aa;
  font-weight: 600;
  margin-top: 6px;
}

.brand-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-top: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hızlı Eylem Butonları */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-phone {
  background: rgba(255, 94, 20, 0.15);
  color: #ff9233;
  border-color: rgba(255, 94, 20, 0.35);
}
.btn-phone:hover {
  background: var(--primary);
  color: #fff;
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #25d366;
  color: #0c0e12;
}

.btn-qr {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: var(--border-subtle);
}
.btn-qr:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ===================================================
   YAPIŞKAN ARAMA & KATEGORİ ÇUBUĞU
   =================================================== */

.sticky-controls {
  position: sticky;
  top: 0;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 40;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto 10px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 11px 40px 11px 38px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input::placeholder {
  color: var(--text-sub);
}

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

/* Kategori Butonları (Yatay Kaydırılabilir) */
.categories-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 680px;
  margin: 0 auto;
}
.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.category-pill:hover:not(.active) {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================================
   MENÜ LİSTESİ & ÜRÜN KARTLARI
   =================================================== */

.menu-container {
  max-width: 720px;
  margin: 16px auto;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.category-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd199;
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-subtle);
}

.category-section-title span.count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .items-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 94, 20, 0.3);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background-color: #12141a;
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-card:hover .card-img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.badge-fire {
  background: linear-gradient(135deg, #ff4500, #ff8c00);
  color: #fff;
}
.badge-orange {
  background: linear-gradient(135deg, #ff7a3d, #ea580c);
  color: #fff;
}
.badge-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0c0e12;
}
.badge-yellow {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0c0e12;
}
.badge-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.badge-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}
.badge-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}
.badge-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.card-price-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffd199;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.card-inline-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffca28;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.card-detail-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff9233;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-card:hover .card-detail-hint {
  color: #ffb066;
  transform: translateX(3px);
}

.ingredient-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 600;
}

.btn-detail-close {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 14px;
}
.btn-detail-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ===================================================
   MODALLAR (İÇERİK DETAYI & MASA QR YAZDIRMA)
   =================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modal-fade-in 0.25s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd199;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
}

/* ===================================================
   MASA QR KOD YAZDIRMA ŞABLONU (PRINTABLE STAND)
   =================================================== */

.qr-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.qr-table-stand {
  background: #ffffff;
  color: #1a1a1a;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  border: 3px solid #ff5e14;
  position: relative;
}

.stand-header {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ff5e14;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stand-sub {
  font-size: 0.75rem;
  color: #555;
  font-weight: 700;
  margin-bottom: 12px;
}

.stand-table-badge {
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

#qrcodeCanvas {
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 12px;
}
#qrcodeCanvas img {
  display: block;
}

.stand-instructions {
  font-size: 0.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.stand-footer {
  font-size: 0.72rem;
  color: #666;
  font-weight: 600;
  margin-top: 6px;
}

.btn-print {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===================================================
   ALT BİLGİ (FOOTER)
   =================================================== */

.site-footer {
  background: #090a0d;
  border-top: 1px solid var(--border-subtle);
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffd199;
}

.footer-slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff9233;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-top: 12px;
}

.footer-credits {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.credits-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.credits-link strong {
  color: #f1f5f9;
  letter-spacing: 0.3px;
}

.credits-link:hover {
  color: #ffffff;
  background: rgba(255, 94, 20, 0.15);
  border-color: rgba(255, 94, 20, 0.4);
  box-shadow: 0 0 15px rgba(255, 94, 20, 0.2);
  transform: translateY(-1px);
}

.credits-link:hover strong {
  color: #ff9233;
}

/* ===================================================
   YAZDIRMA STİLLERİ (A4 MASA KARTI BASKISI)
   =================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  
  .header-banner,
  .sticky-controls,
  .menu-container,
  .floating-cart-bar,
  .site-footer,
  .modal-close-btn,
  .btn-print,
  .form-group {
    display: none !important;
  }
  
  .modal-backdrop {
    position: static !important;
    background: transparent !important;
    display: block !important;
    padding: 0 !important;
  }
  
  .modal-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }
  
  .modal-body {
    padding: 0 !important;
  }
  
  .qr-preview-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 50px !important;
  }
  
  .qr-table-stand {
    border: 3px solid #ff5e14 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    transform: scale(1.15);
  }
}
