/* 1. TEMEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #f8f9fa; color: #2d3436; line-height: 1.6; overflow-x: hidden; }

/* PERDE (LOADER) SİSTEMİ */
#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    background: #1e272e;
}
.curtain {
    position: absolute; top: 0; width: 50.5%; height: 100%;
    background: #1e272e; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.curtain.left { left: 0; }
.curtain.right { right: 0; }

/* LOGO SUNUM ANİMASYONU */
.loader-content { color: white; text-align: center; z-index: 10000; transition: opacity 0.5s ease; }
.loader-logo { 
    font-size: 2.5rem; letter-spacing: 8px; font-weight: 700; color: #f1c40f; 
    opacity: 0; transform: scale(0.8);
    animation: logoSunum 2.5s ease-out forwards;
}

@keyframes logoSunum {
    0% { opacity: 0; transform: scale(0.8); letter-spacing: 2px; }
    100% { opacity: 1; transform: scale(1); letter-spacing: 8px; }
}

/* PERDE AÇILMA TETİKLEYİCİSİ */
/* PERDE SİSTEMİ ANA YAPI */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    background: transparent; /* Wrapper şeffaf olmalı ki perdeler görünsün */
}

.curtain {
    position: absolute;
    top: 0;
    width: 50.5%; /* Boşluk kalmaması için hafif bindirme */
    height: 100%;
    background: #1e272e;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.curtain.left { left: 0; transform: translateX(0); }
.curtain.right { right: 0; transform: translateX(0); }

/* LOGO VE İÇERİK */
.loader-content {
    color: white;
    text-align: center;
    z-index: 2; /* Perdelerin üzerinde kalmalı */
    transition: opacity 0.5s ease;
}

/* --- TETİKLEYİCİLER (Loaded Durumu) --- */

/* Sol perde sola, sağ perde sağa! */
.loaded .curtain.left { 
    transform: translateX(-100%); 
}
.loaded .curtain.right { 
    transform: translateX(100%); 
}

/* Yazıların kaybolması */
.loaded .loader-content { 
    opacity: 0; 
    pointer-events: none; 
}

/* Komple wrapper'ın etkisiz hale gelmesi */
.loaded #loader-wrapper { 
    pointer-events: none;
    visibility: hidden;
    transition: visibility 1s; 
}

/* 2. HEADER & DİĞERLERİ */
.header { 
    text-align: center; padding: 100px 20px 80px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('images/header-bg.webp');
    background-size: cover; background-position: center;
}
.header h1 { font-size: 2.8rem; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.tagline { 
    font-size: 0.85rem; color: #f1f2f6; font-weight: 300; text-transform: uppercase; 
    letter-spacing: 4px; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); 
    border-top: 1px solid rgba(255,255,255,0.3); padding-top: 8px; margin-top: 10px;
}
.categories { 
    display: flex; overflow-x: auto; padding: 15px 10px; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.categories::-webkit-scrollbar { display: none; } 
.cat-btn { background: #f1f2f6; border: none; padding: 10px 24px; margin: 0 6px; border-radius: 50px; font-weight: 600; cursor: pointer; color: #747d8c; white-space: nowrap; }
.cat-btn.active { background: #f1c40f; color: #000; transform: scale(1.05); }
.menu-grid { padding: 20px; max-width: 600px; margin: 0 auto; }
.section-title { margin: 40px 0 20px; font-size: 1.6rem; color: #2f3542; display: flex; align-items: center; }
.section-title::after { content: ""; flex: 1; height: 2px; background: #f1c40f; margin-left: 15px; }
.menu-item { 
    display: flex; background: white; border-radius: 20px; margin-bottom: 25px; 
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); opacity: 0; transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.menu-item.reveal { opacity: 1; transform: translateY(0); }
.item-image { width: 130px; min-width: 130px; height: 130px; position: relative; }
.item-image img { width: 100%; height: 100%; object-fit: cover; }
.item-content { padding: 18px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.price { color: #e67e22; font-weight: 800; }
.description { font-size: 0.85rem; color: #747d8c; margin-bottom: 12px; }
/* Alt yazı harf harf büyüteç efekti */
.loader-content p {
    display: flex; 
    justify-content: center;
    flex-wrap: wrap;
}

.loader-content p span {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.3);
    animation: harfBuyutec 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes harfBuyutec {
    0% { opacity: 0; filter: blur(8px); transform: scale(0.3) translateY(10px); }
    50% { opacity: 1; filter: blur(2px); transform: scale(1.4); }
    100% { opacity: 0.8; filter: blur(0); transform: scale(1) translateY(0); }
}