/**
 * Modern QR Menu Design System
 * 2026 Premium Mobile-First Experience
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #0f172a;
  --primary-accent: #2563eb;
  --brand-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  height: 100%;
}

body {
  font-family: var(--font-family) !important;
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#content,
main[role="main"] {
  flex: 1 0 auto;
}

/* ==========================================================================
   ROZETLER (BADGES) - YÜKSEK KONTRAST VE OKUNURLUK
   ========================================================================== */
/* Koyu ve renkli zeminli rozetlerde net beyaz yazı */
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-primary,
.badge.bg-dark,
.badge-new,
.badge-yeni,
.deal-badge-pill,
span[class*="badge"][style*="gradient"],
.badge[style*="gradient"],
.badge[style*="background: linear-gradient"] {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Açık zeminli rozetler ve ürün adedi sayaçları (5 Ürün, 4 Ürün vb.) */
.badge.bg-light,
.badge.bg-secondary-subtle,
.badge.bg-white,
.badge.border,
#categoryProductCount,
.subcat-filter-btn:not(.active-subcat) .badge {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  border: 1px solid #cbd5e1 !important;
}

.subcat-filter-btn.active-subcat .badge {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  border: none !important;
}

.deal-countdown-pill {
  color: #fef08a !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   HEADER & LOGO (ÖNE ÇIKAN BÜYÜK MERKEZİ LOGO)
   ========================================================================== */
.modern-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 8px 0;
}

.brand-logo-img {
  height: 64px;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08));
}

.brand-title-text {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* ==========================================================================
   SABİT DEĞERLENDİRME BUTONU (MODAL AÇILDIĞINDA OTOMATİK GİZLENİR)
   ========================================================================== */
.floating-eval-btn {
  position: fixed;
  bottom: 22px;
  left: 20px;
  z-index: 1040;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  border: 2.5px solid #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.floating-eval-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
  color: #ffffff !important;
}

/* Modal açıkken floating butonu gizle (Kapat butonuyla çakışmayı önler) */
/* Modal açıkken: Sticky Header ve Değerlendirme butonu kesinlikle modalın altına alınır ve gizlenir */
body.modal-open #header,
body.modal-open .modern-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1000 !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.modal-open main,
body.modal-open #content {
  z-index: 1055 !important;
  position: relative !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.modal {
  z-index: 1060 !important;
}

body.modal-open .floating-eval-btn {
  display: none !important;
}

/* ==========================================================================
   CANLI ARAMA ÇUBUĞU
   ========================================================================== */
.search-bar-wrapper {
  position: relative;
  margin: 10px 0 4px 0;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: #ffffff;
  font-size: 16px; /* Mobil cihazlarda odaklanınca ekranın büyümesini (auto-zoom) önlemek için 16px */
  font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

@media (max-width: 768px) {
  input, select, textarea, .search-input {
    font-size: 16px !important;
  }
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  display: none;
  cursor: pointer;
}

/* ==========================================================================
   ANA BANNER SLIDER (400x400 TAM GÖRÜNÜR KARE & ORANTILI)
   ========================================================================== */
.hero-banner-container {
  max-width: 440px;
  margin: 0 auto;
}

.hero-banner-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 400px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   KATEGORİ KARTLARI (2 SÜTUNLU MODERN DÜZEN)
   ========================================================================== */
.category-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-card:hover, .category-card:active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(203, 213, 225, 1);
}

.category-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f1f5f9;
}

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

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

.category-badge-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.category-content {
  padding: 10px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

.category-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

/* ==========================================================================
   YEMEK & ÜRÜN KARTLARI (MENULIST)
   ========================================================================== */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  padding: 12px;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.product-card:hover, .product-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.product-img-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  min-width: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

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

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

.product-body {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.product-price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  white-space: nowrap !important;
}

.product-price-old {
  font-size: 0.80rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 6px;
  white-space: nowrap !important;
}

.product-discount-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.product-detail-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.product-card:hover .product-detail-btn {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.product-tag-pill {
  background: #f8fafc;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.subcat-filter-btn {
  transition: all 0.2s ease !important;
  cursor: pointer;
}
.subcat-filter-btn:hover {
  transform: translateY(-1px);
}
.subcat-filter-btn.active-subcat {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  white-space: nowrap !important;
}

.product-price-old {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
  white-space: nowrap !important;
}

.product-discount-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.product-detail-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.product-card:hover .product-detail-btn {
  background: var(--primary-accent);
  color: #ffffff;
}

/* ==========================================================================
   MODERN MERKEZİ MODAL DÜZENİ (EKRANA TAM ORTALI & 1:1 TAM KARE FOTOĞRAFLI)
   ========================================================================== */
.modal-dialog-modern {
  margin: 1.25rem auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100% - 2.5rem) !important;
  max-width: 400px !important;
  width: calc(100% - 24px) !important;
  padding: 0 !important;
}

.modal-content-modern {
  border-radius: 22px !important;
  border: none !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  width: 100% !important;
}

.modal-content-modern .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  padding: 16px 20px !important;
}

.modal-content-modern .modal-footer {
  padding: 12px 18px !important;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

/* Büyük, belirgin, 400x400 piksele tam oturan 1:1 kare hero ürün fotoğrafı */
.modal-hero-img-box {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block;
}

/* Fiyat ve ₺ simgesi asla alt satıra kaymaz */
.price-display-nowrap {
  white-space: nowrap !important;
  display: inline-block !important;
  letter-spacing: -0.3px;
}

/* ==========================================================================
   MODAL İÇERİK MİMARİSİ (DÜZENLİ, KONTRASTLI, MÜKEMMEL HİYERARŞİ)
   ========================================================================== */
.modal-product-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.modal-product-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  line-height: 1.3;
  width: 100%;
}

.modal-price-stack-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 4px;
  margin-bottom: 4px;
  text-align: right;
}

.modal-price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  line-height: 1.15;
  white-space: nowrap !important;
}

.modal-price-current.text-success {
  color: #059669 !important;
}

.modal-price-old {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap !important;
}

/* Tam genişlikte, şık hediye/kampanya bilgi kutusu */
.modal-promo-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.modal-promo-icon {
  font-size: 1.1rem;
  color: #d97706;
  flex-shrink: 0;
}

/* Bilgi bölümleri (Açıklama, Detaylar vb.) */
.modal-info-section {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 12px 14px;
}

.modal-info-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.modal-info-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}

.modal-countdown-box {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.modal-countdown-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #c2410c;
  letter-spacing: 0.4px;
}

.modal-countdown-timer {
  font-size: 0.90rem;
  font-weight: 700;
  color: #9a3412;
}

/* ==========================================================================
   TEKİL VE ÇOKLU KAMPANYA STİLLERİ
   ========================================================================== */
.single-deal-spotlight {
  background: #ffffff;
  border-radius: 22px;
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
  cursor: pointer;
}
.single-deal-spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   MODERN FOOTER
   ========================================================================== */
.modern-footer {
  flex-shrink: 0;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 35px 0 25px 0;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.footer-copyright {
  font-size: 0.80rem;
  color: #64748b;
}
