/* 1. Temel Ayarlar ve Smooth Scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Header yüksekliğine göre ayarlandı */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
}

/* 2. Header ve Burger Menü */
header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5a5a5a;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0; 
    z-index: 1000;
   
}

header h1 {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 2rem;
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    
}

.nav-container {
    position: absolute;
    left: 20px;
    top: 45px; /* Logoyla hizalamak için biraz aşağı aldım */
}

#nav-check {
    display: none;
}

.nav-btn label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: 0.3s;
}

.nav-links {
    position: absolute;
    display: none;
    background-color: #1a1a1a;
    width: 150px;
    border-radius: 8px;
    top: 40px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    text-align: left;
}

.nav-links a:active {
    background-color: #c0392b; /* Tıklandığında kısa süreliğine kırmızı olur */
    color: #fff;
}

#nav-check:checked ~ .nav-links {
    display: block;
}

/* 3. Konteynır ve Izgara */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.category-title {
    text-align: center;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    font-size: 1.9rem;
    color: #c0392b;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 4. Menü Kartları ve Fotoğraflar */
.menu-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.menu-item img {
    width: 100%;
    /* FOTOĞRAFLARIN TAM GÖRÜNMESİ İÇİN: */
    height: 250px; /* PC için ideal yükseklik */
    object-fit: contain; /* Kırpma yapmaz, fotoğrafın tamamını sığdırır */
    background-color: #fff; /* Fotoğrafın yanlarında boşluk kalırsa beyaz görünür */
    display: block;
}

.item-info {
    padding: 15px;
    text-align: center;
}

.item-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-price {
    display: block;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 5. Footer */
footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

footer a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

/* 6. MOBİL AYARLAR (QR Kod ile girenler için en önemlisi) */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    .menu-grid {
        gap: 10px;
    }

    .menu-item img {
        height: 160px; /* Mobilde fotoğraflar çok yer kaplamasın */
        object-fit: contain; /* Mobilde de kırpma yapmaz */
    }

    .item-name {
        font-size: 0.9rem;
    }

    .item-price {
        font-size: 1rem;
    }
}

