/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Yükleme Animasyonu */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#lottie-container {
    width: 150px;
    height: 150px;
}

.fade-out {
    opacity: 0;
}

/* Header Stili */
header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    max-width: 100px; /* 150px değerinden 100px'e küçültüldü */
    height: auto;
}

.welcome h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.welcome p {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Geri Butonu */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-button i {
    margin-right: 5px;
}

.back-button:hover {
    color: #e74c3c;
}

/* Ana İçerik */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Menü Konteyner (Ana Sayfa için) */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 20px auto;
    padding-bottom: 40px;
    min-height: 50vh; /* Minimum yükseklik ekliyorum */
}

/* Menü Kutusu (Ana Sayfa için) */
.menu-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.menu-box i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.menu-box h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.menu-box p {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 10px;
}

.menu-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.arrow-icon {
    margin-top: 10px;
    color: #e74c3c;
    font-size: 1.2rem;
}

/* Menü İçeriği */
.menu-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-section {
    display: block;
}

.menu-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 10px;
}

.menu-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

/* Kategori Sekmeleri */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

/* "Tüm" ile başlayan kategoriler için özel stil (boydan boya) */
.category-btn[data-category^="all"] {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    margin-bottom: 10px;
    height: 45px;
    font-size: 1rem;
    font-weight: 600;
}

/* Diğer kategori butonları için grid düzeni (2x2) */
.category-tabs::after {
    content: '';
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.category-btn:not([data-category^="all"]) {
    flex: 0 0 calc(50% - 6px); /* 2 sütunlu grid, 12px boşluk için */
    border-radius: 8px;
    background-color: #ecf0f1;
    border: none;
    text-align: center;
    padding: 12px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-bottom: 0;
}

.category-btn:hover {
    background-color: #dfe6e9;
}

.category-btn.active {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

.category-btn[data-category^="all"].active {
    border-color: #e74c3c;
}

/* Kategori Grup Stili */
.category-group {
    margin-bottom: 30px;
}

.category-group h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.divider {
    height: 2px;
    background-color: #ecf0f1;
    margin-bottom: 15px;
}

/* Menü Öğeleri Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Menü Öğe Stili */
.menu-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.item-info {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.item-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.item-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.item-image {
    width: 100px;
    height: 100px; /* Sabit yükseklik ekleyerek kare görünüm */
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden; /* Taşan içeriği gizle */
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resim oranını koruyarak alanı doldur */
    object-position: center; /* Resmi ortala */
}

/* Instagram Takip Bölümü */
.social-follow {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 40px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-follow h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.social-follow p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.instagram-button i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Footer Stili */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

/* Yukarı Ok Butonu */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-to-top i {
    font-size: 1.5rem;
}

/* Mobil için yukarı ok butonu ayarları */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top i {
        font-size: 1.2rem;
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .back-button {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        padding-bottom: 5px;
    }
    
    .welcome h1 {
        font-size: 1.5rem;
    }
    
    .welcome p {
        font-size: 0.9rem;
    }
    
    .menu-box h3 {
        font-size: 1.5rem;
    }
    
    .menu-container {
        min-height: auto;
        padding-bottom: 20px;
    }
    
    .category-btn[data-category^="all"] {
        height: 40px;
        font-size: 0.95rem;
    }
    
    .category-btn:not([data-category^="all"]) {
        height: 45px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .menu-content {
        padding: 15px;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Kare görünümü korur */
        position: relative;
        order: -1;
    }
    
    .item-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-btn[data-category^="all"] {
        height: 38px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .category-btn:not([data-category^="all"]) {
        flex: 0 0 calc(50% - 4px); /* 8px boşluk için */
        height: 40px;
        font-size: 0.8rem;
        padding: 8px 5px;
    }
    
    /* Ana sayfa için ekstra alan */
    body {
        min-height: 100vh;
    }
    
    .menu-box {
        margin-bottom: 15px;
    }
}

/* Mobil Uyumluluk için Instagram bölümü ayarları */
@media (max-width: 768px) {
    .social-follow {
        padding: 20px 15px;
        margin: 15px auto 30px;
    }
    
    .social-follow h3 {
        font-size: 1.3rem;
    }
    
    .instagram-button {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .social-follow {
        padding: 15px 10px;
    }
    
    .instagram-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .instagram-button i {
        font-size: 1.2rem;
    }
}


