/* ========================================= */
/* SADECE ANA SAYFA TASARIMI (index.css)     */
/* ========================================= */
/* ANA SAYFA İÇİN SCROLL (KAYDIRMA) KİLİDİNİ AÇMA */
/* ANA SAYFA SCROLL VE ORTALAMA DÜZELTMESİ */
body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    display: flex !important; /* Blok yerine tekrar esnek kutu yapısına geçiyoruz */
    flex-direction: column !important; /* Öğeleri yukarıdan aşağıya diz */
    align-items: center !important; /* HER ŞEYİ KUSURSUZCA ORTALA */
    justify-content: flex-start !important;
}

/* İçeriği saran ana kutuyu (main-content) toparlayıp ortalamak için */
.main-content {
    width: 100%;
    max-width: 1100px; /* Ekran ne kadar büyürse büyüsün kartların çok ayrılmasını engeller */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Başlık ve kart ızgaralarını ortalar */
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Yüzen Tema Butonu (Sol Üst) */
.theme-toggle-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    background-color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Karşılama Başlığı */
.header-section { text-align: center; margin-bottom: 50px; padding: 0 20px; }
.header-section h1 { color: #2c3e50; font-size: 3.5rem; margin: 0 0 10px 0; letter-spacing: -1px; transition: color 0.4s ease; }
.header-section p { color: #7f8c8d; font-size: 1.2rem; max-width: 600px; margin: 0 auto; line-height: 1.6; transition: color 0.4s ease; }

/* Menü Izgarası */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1100px; padding: 20px; width: 100%; box-sizing: border-box; }
.menu-card { background-color: white; border-radius: 15px; padding: 40px 20px; text-align: center; text-decoration: none; color: #2c3e50; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 2px solid transparent; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.menu-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2); border-color: #3498db; }
.menu-icon { font-size: 3.5rem; margin-bottom: 20px; }
.menu-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 10px; color: #2c3e50; transition: color 0.4s ease; }
.menu-desc { font-size: 0.95rem; color: #7f8c8d; line-height: 1.5; margin: 0; transition: color 0.4s ease; }

/* ========================================= */
/* ANA SAYFA KARANLIK TEMA                   */
/* ========================================= */
html.dark-mode body { background-color: #121212; }
html.dark-mode .theme-toggle-btn { background-color: #2c3e50; box-shadow: 0 4px 10px rgba(255,255,255,0.1); }
html.dark-mode .header-section h1 { color: #f1f1f1; }
html.dark-mode .header-section p { color: #aaaaaa; }
html.dark-mode .menu-card { background-color: #1e1e1e; box-shadow: 0 10px 20px rgba(0,0,0,0.3); border-color: #333; }
html.dark-mode .menu-card:hover { box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3); border-color: #3498db; }
html.dark-mode .menu-title { color: #f1f1f1; }
html.dark-mode .menu-desc { color: #aaaaaa; }

/* ANA SAYFA MOBİL DÜZENİ */
@media (max-width: 900px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .menu-grid { grid-template-columns: 1fr; } }