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

/* PREMIUM TANTUNİ KONSEPTİ */
:root {
    /* Ana Renkler */
    --primary: #28a745;          
    --primary-dark: #218838;     
    --primary-neon: #39ff14; /* Parlak Neon Yeşili */
    --primary-soft: rgba(40, 167, 69, 0.08);
    
    /* Arka Planlar */
    --bg-body: #f8f9fa;   /* Göz yormayan çok açık gri */
    --bg-card: #ffffff;   
    
    /* Yazı Renkleri */
    --text-main: #1a1a1a;        
    --text-muted: #757575;       
    --text-price: #28a745;
    
    /* Yapısal */
    --border: #f0f0f0;
    --radius: 16px; 
    --navbar-height: 75px;
    
    /* Gölgeler */
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 50px -10px rgba(0,0,0,0.1);
    --shadow-neon: 0 4px 15px rgba(57, 255, 20, 0.4);
}

[data-theme="dark"] {
    --bg-body: #121212;          
    --bg-card: #1e1e1e;          
    --text-main: #ffffff;        
    --text-muted: #a0a0a0;       
    --border: #2a2a2a;
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.5);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 100px;
    padding-top: var(--navbar-height);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    height: var(--navbar-height);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
}
[data-theme="dark"] .navbar { background: rgba(30, 30, 30, 0.95) !important; border-color: #333; }

/* BANNER ALANI (YÜKSEKLİK ARTIRILDI & VIDEO DESTEĞİ EKLENDİ) */
.hero-section {
    position: relative; width: 100%; 
    height: 420px; /* 260px'den 320px'e çıkarıldı */
    background-size: cover; background-position: center;
    box-shadow: 0 5px 20px -5px rgba(40, 167, 69, 0.5);
    border-bottom: 2px solid var(--primary-neon);
    margin-bottom: 40px;
    overflow: hidden; /* Video taşmasını önlemek için */
}

/* Video için eklenen stil */
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; /* Videoyu alana yayar */
    z-index: 0;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

/* Arama Alanı */
.search-container { 
    position: relative; z-index: 10; margin-top: -65px; padding: 0 24px; 
}
.search-box {
    background: var(--bg-card); 
    border-radius: 50px; 
    padding: 0 25px;
    display: flex; align-items: center; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    height: 65px; 
    transition: 0.3s ease;
}
.search-box:focus-within { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(40, 167, 69, 0.2); }
.search-input {
    border: none; background: transparent; width: 100%; padding: 0 20px;
    font-size: 1.05rem; color: var(--text-main); outline: none;
}
.search-icon { color: var(--primary); font-size: 1.2rem; }

/* Kategori Menüsü */
.sticky-category-bar {
    position: sticky; top: var(--navbar-height); z-index: 900;
    background: var(--bg-body);
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
/* Beyazlama sorunu giderildi, sadece gölge eklendi */
.sticky-category-bar.scrolled {
    background: var(--bg-body); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border);
    padding-top: 10px;
    padding-bottom: 10px;
}

.category-nav {
    display: flex; gap: 20px; overflow-x: auto; padding: 10px 24px; 
    scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-item {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; opacity: 0.6; 
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}
.cat-item.active { 
    opacity: 1; 
    border-color: var(--primary); 
}

.cat-img-box {
    width: 45px; height: 45px; border-radius: 12px;
    background: #fff; padding: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.cat-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cat-name { 
    font-size: 0.95rem; font-weight: 600; color: var(--text-main); white-space: nowrap;
}
.cat-item.active .cat-name { color: var(--primary); }

/* Ürün Grid */
.product-grid { display: none; padding: 10px 0; animation: fadeIn 0.5s ease; }
.product-grid.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Ürün Kartı */
.menu-card {
    background: var(--bg-card); 
    border-radius: var(--radius); 
    border: none;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    height: 100%; display: flex; flex-direction: column;
    overflow: hidden;
}
.menu-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    width: 100%; padding-top: 65%; 
    position: relative;
    background-color: var(--border);
}
.card-img-top { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: 0.5s;
}

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

.card-header-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px;
}

.card-title { 
    font-size: 1.15rem; font-weight: 700; color: var(--text-main);
    line-height: 1.3; margin: 0;
}
.price { 
    font-size: 1.2rem; font-weight: 700; color: var(--primary); 
    white-space: nowrap; margin-left: 10px;
}

.card-text { 
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; 
    line-height: 1.5; font-weight: 400;
}

.card-footer {
    margin-top: auto; padding: 0; border: none; background: transparent;
}

/* Butonlar */
.add-btn {
    width: 100%; padding: 12px; border-radius: 12px;
    background: var(--bg-body); 
    color: var(--text-main);
    border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.3s;
}
.add-btn:hover {
    background: var(--primary); color: white;
    box-shadow: 0 5px 15px var(--primary-soft);
}
.add-btn i { font-size: 1.1rem; }

/* Sabit Butonlar (FAB) */
.cart-fab {
    position: fixed; right: 25px; bottom: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: white;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4); 
    z-index: 995; border: none; font-size: 1.4rem;
    transition: 0.3s;
}
.cart-fab:hover { transform: scale(1.1); }

.fab-garson { 
    position: fixed; left: 25px; bottom: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--bg-card); color: var(--text-main);
    border: 1px solid var(--border); 
    box-shadow: var(--shadow-card); z-index: 990; font-size: 1.3rem;
}

.cart-badge {
    position: absolute; top: 0; right: 0; 
    background: #ff3b30; color: white; 
    font-size: 0.8rem; font-weight: 700; 
    width: 22px; height: 22px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--primary);
}

/* Modallar */
.modal-content { border-radius: 20px; border: none; }
.modal-header { border-bottom: 1px solid var(--border); padding: 20px; }
.modal-footer { border-top: 1px solid var(--border); padding: 20px; }

/* Diğer */
.whatsapp-btn { 
    background-color: transparent; 
    color: var(--primary) !important; 
    border: 2px solid var(--primary);
    display: flex; align-items: center; gap: 8px; padding: 0 18px; height: 40px; 
    border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; 
    margin-right: 10px; transition: 0.3s;
}
.whatsapp-btn:hover { background: var(--primary); color: white !important; }

.theme-toggle { border: none; background: transparent; color: var(--text-muted); font-size: 1.3rem; }

.modal-content {
    background-color: var(--bg-card); /* Temanın kart rengini kullan */
    color: var(--text-main); /* Temanın yazı rengini kullan */
    border: 1px solid var(--border);
}

.modal-header, .modal-footer {
    border-color: var(--border); /* Çizgileri tema rengine uyarlar */
}

/* Karanlık modda çarpı (kapatma) butonunu beyaz yap */
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Sepet içi butonların rengini uyarlayalım */
.cart-controls {
    background-color: var(--bg-body) !important;
    border: 1px solid var(--border);
}

