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

/* İTALYAN "ROSSO" KONSEPTİ - KIRMIZI & MODERN */
:root {
    /* Renkler: Şef Kırmızısı */
    --primary: #D92525;          /* Canlı Kırmızı */
    --primary-dark: #B91C1C;     
    --primary-neon: #ff4d4d;     /* Parlak Neon Kırmızısı */
    --accent: #2C3E50;           
    --bg-body: #F9FAFB;          
    --bg-card: #FFFFFF;
    
    /* Yazılar */
    --text-main: #1F2937;        
    --text-muted: #6B7280;       
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'DM Sans', sans-serif;        
    
    /* Yapısal */
    --radius: 16px;
    --navbar-height: 110px; 
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-neon: 0 4px 20px rgba(217, 37, 37, 0.5); 
}

[data-theme="dark"] {
    --bg-body: #111827;          
    --bg-card: #1F2937;          
    --text-main: #F3F4F6;        
    --text-muted: #9CA3AF;       
    --primary: #EF4444; 
    --primary-neon: #ff6b6b;
    --shadow-neon: 0 4px 20px rgba(239, 68, 68, 0.6);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: var(--navbar-height);
    /* padding-bottom kaldırıldı, footer geldi */
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, .navbar-brand, .price, .cat-name {
    font-family: var(--font-heading);
}

/* NAVBAR */
.navbar {
    background-color: var(--bg-card); 
    height: var(--navbar-height);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-neon); 
}

.navbar-brand img {
    height: 90px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.navbar-brand:hover img { transform: scale(1.05); }

/* HERO (BANNER) */
.hero-section {
    position: relative; 
    width: 100%; 
    height: 350px; 
    background-size: cover; 
    background-position: center;
    margin-bottom: 30px;
    border-radius: 0 0 40px 40px;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-video {
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 90%);
    z-index: 1;
}

.hero-content {
    position: absolute; bottom: 40px; left: 0; width: 100%;
    text-align: center; color: #fff; z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-title { font-size: 2.5rem; font-weight: 700; margin: 0; }

/* KATEGORİ MENÜSÜ */
.sticky-category-bar {
    position: sticky; top: var(--navbar-height); z-index: 900;
    background: var(--bg-body);
    padding: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
    transition: background 0.2s;
}
.sticky-category-bar.scrolled {
    background: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.category-nav { display: inline-flex; gap: 15px; padding: 5px 20px; }

.cat-item {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700; font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-muted);
}
.cat-item.active {
    background: var(--primary); 
    color: #fff; border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(217, 37, 37, 0.4);
    transform: translateY(-2px);
}
[data-theme="dark"] .cat-item { border-color: #374151; }

/* MENÜ LİSTESİ */
.product-grid { display: none; margin-bottom: 20px; }
.product-grid.active { display: flex; animation: fadeIn 0.4s ease-out; }

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

.menu-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px;
    display: flex; gap: 15px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-card);
    height: 100%; transition: transform 0.2s;
}
.menu-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

.card-img-wrapper {
    width: 120px; height: 120px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    background-color: #f3f4f6;
}
.card-img-top { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.menu-card:hover .card-img-top { transform: scale(1.1); }

.card-body {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    min-width: 0; 
}

.card-title {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 5px;
    color: var(--text-main); line-height: 1.2;
}
.card-text {
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-footer-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.add-btn {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--bg-body); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0,0,0,0.1); cursor: pointer; transition: 0.2s;
}
.add-btn:active { background: var(--primary); color: #fff; }

/* SEPET FAB */
.cart-fab {
    position: fixed; right: 25px; bottom: 35px;
    width: 65px; height: 65px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(217, 37, 37, 0.4); z-index: 999;
    border: 3px solid #fff; font-size: 1.6rem;
}
.cart-badge {
    position: absolute; top: 0; right: 0;
    background: #111827; color: #fff;
    font-size: 0.8rem; font-weight: bold;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* MODAL */
.modal-content { border-radius: 20px; border: none; }
.modal-header { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 20px; }
.order-btn {
    background: var(--primary); color: #fff; border: none;
    width: 100%; padding: 16px; border-radius: 12px;
    font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(217, 37, 37, 0.25);
}

.whatsapp-btn {
    color: var(--primary) !important; border: 2px solid var(--primary);
    padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
    text-decoration: none; display: flex; align-items: center; gap: 8px;
    background: transparent; transition: 0.3s;
}
.whatsapp-btn:hover { background: var(--primary); color: #fff !important; box-shadow: 0 5px 15px rgba(217, 37, 37, 0.2); }

/* --- YENİ FOOTER TASARIMI --- */
.footer-section {
    background-color: var(--bg-card);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative; z-index: 10;
}
[data-theme="dark"] .footer-section {
    border-top-color: rgba(255,255,255,0.05);
}

.footer-logo { height: 50px; opacity: 0.9; object-fit: contain; }

.footer-desc {
    font-size: 0.95rem; line-height: 1.6; opacity: 0.8;
}

.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background-color: var(--bg-body); color: var(--text-main);
    margin: 0 6px; font-size: 1.2rem; transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.footer-social a:hover {
    background-color: var(--primary); color: #fff;
    transform: translateY(-5px); box-shadow: 0 5px 15px rgba(217, 37, 37, 0.3);
}

.footer-bottom {
    margin-top: 30px; padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    opacity: 0.6;
}
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,0.05); }