/* Genel Stil - Public Menü */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; background: #f8fafc; }

:root { --primary: #1e293b; }

.container { max-width: 1024px; margin: 0 auto; padding: 16px; }

.menu-header { background: linear-gradient(135deg, #064e3b, #065f46); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 10px 24px rgba(2,6,23,.12); }
.brand { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.brand-logo { height: 64px; width: 64px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.brand-title { margin: 0; font-size: 20px; font-weight: 700; }

.category { margin-top: 24px; }
.category-title { margin: 0 0 12px 0; font-size: 18px; color: var(--primary); }

.items-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }

@media (min-width: 640px) {
	.items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.item-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.item-image { width: 100%; height: 160px; object-fit: cover; }
.item-content { padding: 12px; }
.item-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.item-title { margin: 0; font-size: 16px; }
.item-price { font-weight: 700; color: var(--primary); }
.item-desc { margin: 8px 0 0; color: #475569; font-size: 14px; }

.footer { margin-top: 24px; padding: 16px 0; color: #475569; }
.footer-ad { margin-top: 8px; display: flex; justify-content: center; }
.gate-ad { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(5,150,105,.08); color: #065f46; border: 1px solid #059669; text-decoration: none; font-weight: 700; }
.gate-ad:hover { filter: brightness(.98); }


/* --- Modern Enhancements --- */
html, body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.menu-header { background: linear-gradient(135deg, #059669, #16a34a); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 10px 24px rgba(2,6,23,.12); }
.menu-hero { position: relative; color: #fff; background: #064e3b; }
.menu-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero); background-size: cover; background-position: center; filter: brightness(.85); transform: translateY(var(--hero-shift, 0px)); will-change: transform; }
.menu-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,150,105,.55), rgba(6,78,59,.92)); }
.menu-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 32px; }
.brand-title { font-size: 22px; letter-spacing: .2px; }

/* Modern topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 6px 18px rgba(2,6,23,.18); border: 2px solid rgba(255,255,255,.6); padding: 6px; }
.brand-title { margin: 0; font-weight: 900; font-size: 24px; letter-spacing: .3px; }
.topbar { padding: 12px 0; }
.topbar-controls { display: inline-flex; align-items: center; gap: 8px; }
.lang-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.18); }
.lang-pill.active { background: #059669; border-color: #059669; }
.btn-icon { height: 32px; }
.topbar-shadow { box-shadow: 0 10px 20px rgba(2,6,23,.12) inset; }
.theme-dark .lang-pill { background: rgba(255,255,255,.12); color: #fff; }

/* Contact buttons */
.contact-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,.18); }
.contact-btn.wa { background: #22c55e; color: #0b1220; }
.contact-btn.tel { background: rgba(255,255,255,.12); color: #fff; }
.contact-icon { font-size: 16px; }

/* Info bar */
.info-bar { background: rgba(255,255,255,.12); color: #fff; padding: 6px 0; }
.info-inner { display: flex; align-items: center; gap: 8px; }
.info-text { opacity: .95; }

.btn-icon { appearance: none; border: none; background: rgba(255,255,255,.16); color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.btn-icon:hover { background: rgba(255,255,255,.24); }

.toolbar { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(180%) blur(8px); background: rgba(248,250,252,.8); border-bottom: 1px solid #e2e8f0; }
.toolbar-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }

.search-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; font-size: 16px; }
.search-input:focus { outline: none; border-color: #94a3b8; box-shadow: 0 0 0 4px rgba(148,163,184,.15); }

.category-nav-wrap { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.category-nav-wrap::-webkit-scrollbar { display: none; }
.category-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 12px; }
.pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; text-decoration: none; font-size: 15px; font-weight: 600; }
.pill.active, .pill:hover { background: #059669; border-color: #059669; color: #fff; }

/* Category tiles grid */
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 0 14px; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.category-tile { position: relative; display: block; height: 120px; border-radius: 16px; overflow: hidden; background: #e2e8f0; text-decoration: none; color: #fff; background-size: cover; background-position: center; filter: brightness(.98); }
.category-tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.45)); }
.category-tile::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 38%; aspect-ratio: 1/1; background-image: var(--wm); background-repeat: no-repeat; background-size: contain; background-position: bottom right; opacity: .15; }
.category-tile-title { position: absolute; left: 10px; right: 10px; bottom: 8px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.theme-dark .category-tile { background: #1e293b; }

.category { scroll-margin-top: 84px; }
.category-header { display: flex; align-items: center; gap: 10px; margin: 0 0 12px 0; }
.category-title { font-size: 20px; margin: 0; color: var(--primary); }
.category-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid #e2e8f0; background: #fff; }
.theme-dark .category-thumb { border-color: #1e293b; background: #0b1220; }

.image-wrap { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #e2e8f0; }
.item-image { height: 100%; }

.item-card { border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(2,6,23,.04); transition: transform .15s ease, box-shadow .15s ease; }
.item-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,6,23,.08); }
.item-card { position: relative; }
.item-title { font-size: 17px; }
.item-price { font-size: 15px; }
.item-price.ribbon { position: absolute; top: 8px; right: -6px; background: #059669; color: #fff; padding: 8px 12px; border-top-left-radius: 10px; border-bottom-left-radius: 10px; box-shadow: 0 6px 18px rgba(2,6,23,.18); font-weight: 700; }
.theme-dark .item-price.ribbon { background: #065f46; }
.item-actions { margin-top: 10px; }
.add-btn { background: #059669; color: #fff; border: none; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.add-btn:hover { filter: brightness(.98); }
.diet-icons { display: inline-flex; gap: 6px; }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0; font-size: 14px; }
.theme-dark .icon-chip { background: #0b1220; border-color: #1e293b; }

/* Allergens */
.allergen-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.allergen-chip { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; font-size: 12px; }
.theme-dark .allergen-chip { background: #451a1a; color: #fecaca; border-color: #7f1d1d; }

/* Badges */
.badge { position: absolute; top: 8px; left: 8px; background: #16a34a; color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: 0 6px 18px rgba(2,6,23,.18); }
.badge-new { background: #16a34a; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); }
.revealed { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }

/* Blur-up for images */
.img-blur { filter: blur(12px); transform: scale(1.02); transition: filter .35s ease, transform .35s ease; }
.img-blur.loaded { filter: blur(0); transform: none; }

.footer { color: #64748b; }

/* Dark theme */
.theme-dark { background: #0b1220; color: #e2e8f0; }
.theme-dark .menu-header { background: linear-gradient(135deg, #064e3b, #065f46); }
.theme-dark .toolbar { background: rgba(11,18,32,.7); border-bottom-color: #1e293b; }
.theme-dark .search-input { background: #0f172a; color: #e2e8f0; border-color: #1e293b; }
.theme-dark .pill { background: #0f172a; color: #e2e8f0; border-color: #1e293b; }
.theme-dark .pill.active, .theme-dark .pill:hover { background: #059669; border-color: #059669; color: #0b1220; }
.theme-dark .item-card { background: #0f172a; border-color: #1e293b; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.theme-dark .item-desc { color: #94a3b8; }
.theme-dark .footer { color: #94a3b8; }
.theme-dark .gate-ad { background: rgba(16,185,129,.12); color: #10b981; border-color: #10b981; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.5); }
.modal-dialog { position: relative; z-index: 10; background: #fff; color: #0f172a; width: 92%; max-width: 520px; margin: 8vh auto; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(2,6,23,.2); }
.modal-close { position: absolute; top: 8px; right: 10px; border: none; background: rgba(15,23,42,.08); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; }
.modal-body { padding: 12px 16px 4px; }
.modal-image-wrap { width: 100%; aspect-ratio: 16/10; background: #e2e8f0; overflow: hidden; }
.modal-image { width: 100%; height: 100%; object-fit: cover; }
.modal-title { margin: 10px 0 4px; }
.modal-desc { color: #475569; margin: 0 0 8px; }
.qty-row { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.qty-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; }
.qty-input { width: 64px; text-align: center; padding: 8px; border: 1px solid #e2e8f0; border-radius: 10px; }
.modal-footer { padding: 12px 16px 16px; display: flex; justify-content: flex-end; }

.theme-dark .modal-dialog { background: #0f172a; color: #e2e8f0; }
.theme-dark .modal-desc { color: #94a3b8; }
.theme-dark .qty-btn, .theme-dark .qty-input { background: #0b1220; border-color: #1e293b; color: #e2e8f0; }

/* Call waiter modal enhancements */
.modal:not([hidden]) .modal-dialog { animation: modal-pop .22s ease; }
@keyframes modal-pop { from { transform: translateY(8px) scale(.98); opacity: .0; } to { transform: none; opacity: 1; } }
.call-header { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.call-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: rgba(16,185,129,.15); }
.call-sub { margin: 0 0 10px; color: #475569; }
.call-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: none; cursor: pointer; font-weight: 800; color: #fff; box-shadow: 0 8px 20px rgba(2,6,23,.15); }
.action-btn.bill { background: linear-gradient(135deg, #065f46, #059669); }
.action-btn.order { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.action-btn:hover { filter: brightness(.98); }
.theme-dark .action-btn.bill { background: linear-gradient(135deg, #064e3b, #065f46); }
.theme-dark .action-btn.order { background: linear-gradient(135deg, #0284c7, #16a34a); }

/* Extras in modal */
.extras-wrap { margin: 6px 0 4px; }
.extras-title { margin: 4px 0 8px; font-size: 15px; color: #0f172a; }
.extras-list { display: grid; gap: 8px; }
.extra-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.extra-left { display: flex; align-items: center; gap: 10px; }
.extra-price { color: #0f172a; font-weight: 600; }
.extras-total { text-align: right; margin-top: 8px; color: #334155; }
.theme-dark .extras-title { color: #e2e8f0; }
.theme-dark .extra-item { background: #0f172a; border-color: #1e293b; }
.theme-dark .extras-total { color: #94a3b8; }

/* Drawer (Cart) */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.5); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(92%, 420px); background: #fff; color: #0f172a; box-shadow: -10px 0 30px rgba(2,6,23,.2); display: flex; flex-direction: column; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; }
.drawer-close { border: none; background: transparent; font-size: 22px; cursor: pointer; }
.drawer-body { padding: 10px 16px; overflow: auto; flex: 1; }
.drawer-footer { padding: 12px 16px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.drawer-item-title { margin: 0; }
.drawer-item-sub { color: #475569; font-size: 14px; }
.drawer-item-actions { display: flex; align-items: center; gap: 8px; }
.mini-btn { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.remove-btn { border: none; background: transparent; color: #991b1b; cursor: pointer; }

.theme-dark .drawer-panel { background: #0f172a; color: #e2e8f0; }
.theme-dark .drawer-footer, .theme-dark .drawer-header { border-color: #1e293b; }
.theme-dark .drawer-item-sub { color: #94a3b8; }
.theme-dark .mini-btn { background: #0b1220; border-color: #1e293b; color: #e2e8f0; }

/* Cart bar */
.cart-bar[hidden] { display: none; }
.cart-bar { position: sticky; bottom: 0; z-index: 30; background: #059669; color: #fff; padding: 10px 0; box-shadow: 0 -10px 20px rgba(2,6,23,.08); }
.cart-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.cart-summary { font-weight: 600; }

.theme-dark .cart-bar { background: #065f46; }

/* Scroll to top */
.scroll-top { position: fixed; right: 16px; bottom: 80px; z-index: 40; border: none; background: #059669; color: #fff; border-radius: 999px; width: 44px; height: 44px; box-shadow: 0 10px 24px rgba(2,6,23,.2); cursor: pointer; display: none; }
.scroll-top.show { display: inline-grid; place-items: center; }
.theme-dark .scroll-top { background: #065f46; }

/* Call waiter */
.call-waiter { position: fixed; right: 16px; bottom: 24px; z-index: 45; border: none; background: #059669; color: #fff; border-radius: 999px; padding: 10px 14px; box-shadow: 0 10px 24px rgba(2,6,23,.2); cursor: pointer; font-weight: 800; }
.call-waiter:hover { filter: brightness(.98); }
.theme-dark .call-waiter { background: #065f46; }

.toast[hidden] { display: none; }
.toast { position: fixed; right: 16px; bottom: 80px; z-index: 55; background: rgba(2,6,23,.9); color: #fff; padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 24px rgba(2,6,23,.3); }
.theme-dark .toast { background: rgba(248,250,252,.95); color: #0f172a; }

/* Simple form field for call modal */
.form-textarea { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; min-height: 80px; }
.theme-dark .form-textarea { background: #0f172a; color: #e2e8f0; border-color: #1e293b; }

/* Ad overlay */
.ad-overlay[hidden] { display: none; }
.ad-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(2,6,23,.85); }
.ad-full { position: absolute; inset: 0; background-image: var(--ad); background-size: contain; background-repeat: no-repeat; background-color: #000; background-position: calc(50% + var(--ad-x,0px)) calc(50% + var(--ad-y,0px)); transform: scale(1.0); transition: transform .4s ease; will-change: background-position, transform; }
.ad-overlay.show .ad-full { transform: none; }
.ad-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.2), rgba(0,0,0,.55)), linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65)); }
.ad-close { position: absolute; top: 12px; right: 12px; border: none; background: rgba(15,23,42,.6); color: #fff; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; z-index: 2; }
.ad-click { position: absolute; inset: 0; z-index: 1; }
.ad-open { overflow: hidden; }

