/* Genel Stil Reset ve Font (Google Fonts'tan Poppins veya Inter kullanılması tavsiye edilir) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; 
}

/* Yeni Arka Plan Rengi */
body {
    background-color: #5f2222; /* Koyu kırmızı/kahverengi ton */
    color: #f0f0f0; /* Metin rengini açık hale getirdik */
}

/* ---------------------------------
  1. Header ve Navigasyon
------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: #5f2222; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
}

.logo {
    font-size: 28px;
    color: #f0f0f0; 
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar a {
    font-size: 16px;
    color: #f0f0f0; 
    font-weight: 500;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: #ffcc00; 
}

.menu-icon {
    font-size: 26px;
    color: #f0f0f0; 
    cursor: pointer;
    display: none; 
}

/* ---------------------------------
  2. Kategori Kartları (.card-container)
------------------------------------ */
.card {
    padding: 120px 5% 50px; 
    min-height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: center; 
}

.card-container {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto; 
    justify-items: stretch; 
}

.card-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    aspect-ratio: 16 / 9; 
}

.card-box:hover {
    transform: scale(1.05); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); 
}

.card-box img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: opacity 0.4s;
}

.card-box:hover img {
    opacity: 0.9; 
}

.card-box h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    margin: 0;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease; 
}

/* Hover'da başlığın kaybolması */
.card-box:hover h4 {
    opacity: 0;
}

/* ---------------------------------
  3. Dinamik Menü İçeriği (.menu-display)
------------------------------------ */
.menu-display {
    padding: 20px 5%;
    max-width: 800px; 
    margin: 0 auto;
    background-color: #472121; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none !important;
}

.back-button {
    background: none;
    border: none;
    color: #ffcc00; 
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 25px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: color 0.3s;
}

.back-button:hover {
    color: #e6b800; 
}

.back-button .bx {
    margin-right: 8px;
    font-size: 1.3rem;
}

.menu-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #f0f0f0; 
    border-bottom: 3px solid #ffcc00; 
    display: inline-block;
    padding-bottom: 5px;
    width: 100%;
}

.items-list {
    background: #5C3D3D; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FOTOĞRAF DESTEĞİ İÇİN YENİ CSS STİLLERİ */
.menu-item {
    /* Genel menu-item yapısını flex yaparak fotoğraf ve içeriği hizalarız */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 15px; /* Fotoğraf ve içerik arasındaki boşluk */
    padding: 20px;
    border-bottom: 1px solid #7a5a5a;
    position: relative; /* Mobil fiyat pozisyonlaması için */
}

.menu-item:last-child {
    border-bottom: none;
}

/* Fotoğraf Kapsayıcısı */
.item-image-container {
    width: 90px; 
    height: 90px; 
    min-width: 90px; 
    border-radius: 8px; 
    overflow: hidden;
    flex-shrink: 0; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Sadece içeriğin olduğu kısım */
.menu-item-content {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    flex-grow: 1; 
    max-width: 100%; 
}

.menu-item.with-image .menu-item-content {
    /* Fotoğraf varsa içeriğin kapladığı alanı kısıtlarız */
    max-width: calc(100% - 105px); /* 90px resim + 15px boşluk */
}

/* Ürün Adı ve Açıklama Alanı */
.menu-item-content .item-text-info {
    flex-grow: 1;
    max-width: 90%; /* Fiyat için yer bırakırız */
}


.menu-item h3 {
    font-size: 1.2rem;
    color: #f0f0f0; 
    margin-bottom: 3px;
    font-weight: 600;
}

.menu-item .description {
    font-size: 0.9rem;
    color: #ccc; 
}

.menu-item .price {
    font-size: 1.2rem;
    color: #ffcc00; 
    font-weight: 700;
    align-self: flex-end; /* Fiyatı sağa hizalar */
    min-width: 60px; /* Fiyatın kaymasını önler */
}

/* ---------------------------------
  4. Hakkımızda Bölümü
------------------------------------ */
.about {
    padding: 50px 5%;
    text-align: center;
    background-color: #5f2222; 
    border-top: 1px solid #7a5a5a;
    color: #f0f0f0; 
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #f0f0f0; 
}

.about p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc; 
}


/* ---------------------------------
  5. Media Sorguları (Responsive Düzen)
------------------------------------ */

/* Tablet (min-width: 600px) */
@media (min-width: 600px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Masaüstü (min-width: 992px) */
@media (min-width: 992px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px;
    }

    .card-container > .card-box:nth-child(7) {
        grid-column: 2 / 3; 
        max-width: 300px; 
        margin: 0 auto; 
    }
    
    .menu-icon {
        display: none; 
    }
    
    .menu-item-content {
        flex-direction: row; /* Masaüstünde fiyatı menü öğesiyle yan yana tutar */
    }
    
    .menu-item-content .item-text-info {
        max-width: 75%;
    }

    .menu-item .price {
        align-self: flex-start;
    }
}

/* Mobil Menü ve İçerik Media Sorgusu */
@media (max-width: 768px) {
    /* ... Mobil Navigasyon Stilleri (Aynı Kalır) ... */

    .header {
        padding: 15px 5%;
    }
    
    .logo {
        font-size: 24px;
    }

    .menu-icon {
        display: block; 
    }
    
    .navbar.active {
        display: block; 
    }

    .card {
        padding-top: 80px; 
    }

    /* GÜNCELLENMİŞ MOBİL MENÜ ÖĞESİ */
    .menu-item {
        flex-direction: row; /* Fotoğraf ve içerik yan yana */
        align-items: flex-start;
        padding: 15px;
    }

    .menu-item.with-image .menu-item-content {
        max-width: 70%; /* Fotoğraf varken içerik genişliği */
    }

    .menu-item-content {
        flex-direction: column; /* Mobil: Ad ve Açıklama üst üste */
        margin-right: 60px; /* Fiyat için boşluk bırakır */
    }

    .menu-item .price {
        /* Fiyatı kartın sağ üst köşesine konumlandırır */
        position: absolute;
        right: 15px;
        top: 15px;
        font-size: 1.1rem;
        align-self: flex-end; 
    }
}

/* ---------------------------------
  6. Footer (Altbilgi)
------------------------------------ */
.footer {
    padding: 20px 5%;
    background: #462626; 
    border-top: 1px solid #7a5a5a;
    text-align: center;
    color: #f0f0f0; 
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer p {
    margin: 5px 0;
}

.footer p:first-child {
    font-weight: 600;
}

.footer .author-link {
    color: #ffcc00; 
    text-decoration: none;
    transition: color 0.3s;
}

.footer .author-link:hover {
    color: #e6b800; 
    text-decoration: underline;
}