/* =========================================
   1. TEMEL AYARLAR VE RENKLER
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    background-color: #000000; /* Dibinde kalan boşluğu siyah gösterir */
    height: 100%;
}
:root {
    --primary-red: #D32F2F; /* İştah açıcı Hatay kırmızısı */
    --dark-bg: #121212; /* Premium siyah */
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-dark: #333333;
}
body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* FOOTER'I UZATACAK SİSTEM */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. NAVBAR (ÜST MENÜ - MASAÜSTÜ)
   ========================================= */
#navbar {
    background-color: var(--dark-bg);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    height: 80px; 
}

.logo h1 {
    font-size: 28px;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-red);
}

.logo .subtitle {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    margin-left: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-red);
}

/* =========================================
   3. HERO (KARŞILAMA ALANI - MASAÜSTÜ)
   ========================================= */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('foto/bPTvk.jpg');
    background-position: top center !important; 
    background-size: cover;
    
    background-repeat: no-repeat;
    
    margin-top: 80px; 
    height: 75vh; 
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
    color: var(--white);
    
    padding: 0 20px;
    padding-top: 150px; /* SİHİRLİ DOKUNUŞ: Yazıları tabeladan kurtarıp aşağı (cama) iter */
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* =========================================
   4. BUTONLAR
   ========================================= */
.btn {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-red);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* =========================================
   5. MENÜ ALANI
   ========================================= */
#menu {
    padding: 80px 20px;
    max-width: 1200px; /* Kartlar sığsın diye biraz genişlettik */
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
}

.menu-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px; /* Butonlar arası boşluğu ayarladık */
}

.category-btn {
    background-color: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    /* ŞUNLARI EKLE: */
    position: relative;
    z-index: 10; 
}
.category-btn:hover, .category-btn.active {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Yan yana dizilim için ayar */
.menu-items {
    display: flex;
    flex-wrap: wrap; /* Sığmayan alta geçsin */
    justify-content: center; /* Ortalar */
    gap: 20px;
}

.menu-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px; /* Her kart sabit genişlikte, yan yana dizecek kadar yer varsa yan yana durur */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--primary-red);
    transition: 0.3s;
}

.menu-item:hover {
    transform: translateY(-8px); /* Üzerine gelince havaya kalkma efekti */
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.menu-img {
    width: 100%;
    height: 150px; /* Görseli biraz kısalttık ki kart daha kompakt olsun */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.item-info h3 {
    color: var(--dark-bg);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.item-info p {
    font-size: 0.9rem;
    color: #666;
}

.item-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-red);
    background: #fff0f0; /* Fiyatın arkasına hafif kırmızı vurgu */
    padding: 5px 25px;
    border-radius: 30px;
    width: fit-content;
}

/* =========================================
   6. İLETİŞİM ALANI
   ========================================= */
#iletisim {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    /* ORTADA BOŞLUK KALIRSA İLETİŞİMİ VE FOOTER'I ZORLA DİBE İTER: */
    margin-top: auto; 
}

.contact-box h2 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.contact-box p {
    margin-bottom: 30px;
    color: #ccc; /* Yazıyı hafif grileştirdik, şık dursun */
}

/* İletişim Butonlarının Kutusu */
.contact-info {
    display: flex;
    flex-direction: column; /* Alt alta dizer */
    align-items: center;
    gap: 15px; /* Butonlar arası boşluk */
}

/* Modern İletişim Butonları */
.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* İkon ile yazı arasına boşluk */
    color: var(--white) !important; /* Tarayıcının lacivert link rengini zorla ezer */
    text-decoration: none;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05); /* Şeffaf siyah/gri arkaplan */
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 320px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--primary-red); /* Üzerine gelince kırmızı olur */
    border-color: var(--primary-red);
    transform: translateY(-3px); /* Hafif yukarı zıplama efekti */
}

/* Sosyal Medya İkonları */
.social-links {
    margin-top: 35px;
    font-size: 1.8rem;
}

.social-links a {
    color: var(--white) !important;
    margin: 0 15px;
    transition: 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-red) !important;
    transform: scale(1.2); /* Üzerine gelince ikon büyür */
}

/* =========================================
   7. FOOTER (ALT BİLGİ)
   ========================================= */
footer {
    background-color: #000000;
    color: #888888;
    padding: 25px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #222;
    width: 100%;
    /* BÜTÜN BEYAZLIĞI YUTACAK OLAN SİHİRLİ KOD: */
    flex-grow: 1; 
}

footer p {
   margin: 0 !important; 
    padding-bottom: 10px; 
}
footer span {
    color: var(--primary-red);
    font-weight: bold;
    letter-spacing: 1px;
}
/* =========================================
   7. MOBİL UYUMLULUK (SİHİRLİ ALAN)
   ========================================= */
@media (max-width: 768px) {
    /* Navbar Mobilde */
    #navbar {
        flex-direction: column; 
        height: auto; 
        padding: 15px 10px;
    }

    .logo { text-align: center; }
    .logo h1 { font-size: 24px; }
    
    .nav-links {
        margin-top: 10px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; 
    }

    .nav-links li a {
        padding: 5px;
        font-size: 14px;
        margin: 0;
    }

/* Hero Mobilde (Tabelayı kurtaran KESİN çözüm) */
#hero {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('foto/bg.jpg');
        background-position: 15% center !important; /* KAYDIRMA AYARI BURADA */
        background-size: cover !important; 
        background-repeat: no-repeat;
        margin-top: 80px; 
        padding: 80px 20px !important; 
        height: auto !important;
        min-height: unset !important; 
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        text-align: center;
        color: #fff;
    }
    /* Mobilde yazıları arka plandan ayırıp öne çıkaran efsane kutu */
    .hero-content {
        /* Siyahı çok azalttık, %40 yaptık ki arkası tam görünsün */
        background: rgba(0, 0, 0, 0.4); 
        
        /* Bulanıklığı artırdık (Hem normal hem iPhone/Safari uyumlu) */
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px); 
        
        /* Cam hissiyatı veren o incecik, premium beyaz çerçeve */
        border: 1px solid rgba(255, 255, 255, 0.15); 
        
        /* Havada süzülüyormuş gibi tatlı bir gölge */
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        
        padding: 25px 15px; /* Çok yer kaplamasın diye biraz daralttık */
        border-radius: 20px; /* Köşeleri daha modern ve yuvarlak yaptık */
        width: 90%; 
        margin-top: 120px; /* Tabelayı kapatmasın diye az daha aşağı çektik */
        box-sizing: border-box;
    }

    .hero-content h2 {
        font-size: 1.5rem; 
        line-height: 1.3;
        margin-bottom: 12px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.9); /* Yazı okunsun diye siyah gölge */
    }

 .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
        padding: 0 5px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }

    .hero-content h2 {
        font-size: 1.6rem; 
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* Butonlar Mobilde */
    .hero-content .buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px; 
        margin-left: 0; 
    }

    /* Menü Kartları Mobilde */
    .menu-item {
        flex-direction: row; 
        padding: 15px 10px;
        align-items: center;
        gap: 10px;
    }
    
    .menu-img {
        width: 70px;
        height: 70px;
    }

    .item-info h3 {
        font-size: 1.1rem;
    }

    .item-price {
        font-size: 1.1rem;
        margin-top: 0; 
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
#main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#content {
    flex: 1;
}
/* =========================================
   8. GALERİ ALANI (VİTRİN)
   ========================================= */
#galeri {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#galeri .section-title p {
    margin-top: -10px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Fotoğrafları yan yana dizecek modern ızgara sistemi */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Her bir fotoğraf kutusu */
.gallery-item {
    flex: 1 1 300px; /* Her kutu en az 300px olacak şekilde genişler */
    max-width: 400px; /* Çok fazla büyümesin */
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* İçindeki asıl resim ayarları */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kırpmadan sığdırır */
    transition: 0.4s;
}

/* Üzerine gelince olacaklar (Sihir burada) */
.gallery-item:hover img {
    transform: scale(1.1); /* Hafifçe yakınlaşır */
    filter: brightness(1.1); /* Hafifçe parlar */
}
.wide-item {
    flex: 1 1 100%; /* Tam genişlik (satırı kapla) */
    max-width: 100%; 
    height: auto;
}
.wide-item img {
    object-fit: contain; /* Kasa resmini sündürmez, tamamını gösterir */
    background: #000;
}