/* =========================================
   KBU MENÜ — ANA STİL DOSYASI
   Tüm düzeltmeler birleştirildi (final sürüm)
========================================= */

/* =========================================
   0. DEĞİŞKENLER
========================================= */
:root {
    /* Marka — koyu yüzeyler, footer, aktif buton arka planı */
    --primary-color:    #003366;
    /* Okunabilir mavi — logo yazısı, link metni, metin içi mavi */
    --primary-readable: #1a6abf;
    --accent-color:     #8B0000;
    --kbu-yellow:       #ffcc00;

    /* Yüzeyler */
    --color-bg:          #f8fafc;
    --color-surface:     #ffffff;
    --color-surface-2:   #f1f5f9;
    --color-surface-3:   #e2e8f0;

    /* Yazı */
    --color-text:        #1e293b;
    --color-text-muted:  #64748b;
    --color-text-faint:  #94a3b8;
    --color-text-on-primary: #ffffff;

    /* Kenarlık */
    --color-border:        #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-border-focus:  rgba(0,51,102,0.25);

    /* Durum renkleri */
    --color-success-bg:    #e8f5e9;
    --color-success-text:  #2e7d32;
    --color-success-border:#a5d6a7;

    --color-danger-bg:     #fdecea;
    --color-danger-text:   #8B0000;
    --color-danger-border: #f5c6c6;

    --color-warning-bg:    #fff8e1;
    --color-warning-text:  #e6a000;
    --color-warning-border:#ffe082;

    --color-info-bg:       #f0f7ff;
    --color-info-text:     #003366;
    --color-info-border:   rgba(0,51,102,0.25);

    --color-delivery-bg:    #fff3e0;
    --color-delivery-text:  #e65100;
    --color-delivery-border:#ffcc80;

    /* Input */
    --color-input-bg:    #ffffff;
    --color-input-text:  #1e293b;
    --color-select-bg:   #ffffff;

    /* Fiyat */
    --color-price-bg:    #e8f5e9;
    --color-price-text:  #2e7d32;

    /* Gölge */
    --shadow-sm:  0 4px 15px rgba(0,0,0,0.06);
    --shadow-md:  0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg:  0 15px 40px rgba(0,0,0,0.12);

    /* Eski kısayollar — geriye dönük uyum */
    --bg-color:   var(--color-bg);
    --text-dark:  var(--color-text);
    --text-light: var(--color-text-muted);
    --white:      var(--color-surface);
}

/* =========================================
   1. RESET & TEMEL
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    animation: fadeIn 0.8s ease-in;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER VE NAVBAR
========================================= */
header {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 0;
}

/* Logo — okunabilir mavi (#1a6abf), beyaz header üstünde net görünür */
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-readable);
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.05); }

.logo-img {
    height: 90px;
    margin-right: 12px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent-color); }

/* Navbar sağ grup: user-nav + dark toggle yan yana */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-auth {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    flex-direction: row !important;
    gap: 15px;
    align-items: center;
}

/* "Giriş Yap" — okunabilir mavi metin */
.btn-nav-login {
    color: var(--primary-readable) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.btn-nav-login:hover { color: var(--accent-color) !important; }

/* "Kayıt Ol" — okunabilir mavi arka plan */
.btn-nav-register {
    background: var(--primary-readable);
    color: var(--color-text-on-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26,106,191,0.25);
}

.btn-nav-register:hover {
    background: var(--kbu-yellow);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,204,0,0.4);
}

.user-info-wrapper .username {
    color: var(--primary-readable);
    font-weight: 600;
}

/* =========================================
   3. DARK MODE TOGGLE BUTONU
========================================= */
.dark-toggle {
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.dark-toggle:hover {
    transform: rotate(20deg) scale(1.2);
    background: var(--color-surface-2);
}

.dark-toggle:active { transform: scale(0.9); }

/* =========================================
   4. HERO BÖLÜMÜ
========================================= */
.hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Açık mavi tonlu overlay — arka planı ezmeden yazıyı öne çıkarır */
    background: linear-gradient(rgba(26,106,191,0.72), rgba(0,51,102,0.55)),
                url('https://i.hizliresim.com/sxmrmz3.png') center/cover no-repeat;
    color: #ffffff;
    padding: 0 20px;
    animation: bgZoom 15s infinite alternate;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    animation: slideUp 0.8s ease forwards;
}

.hero p {
    font-size: 18px;
    opacity: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    animation: slideUp 1s ease forwards;
}

.hero button {
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--accent-color);
    border: none;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slideUp 1.2s ease forwards, float 3s ease-in-out infinite;
}

.hero button:hover {
    transform: scale(1.05) translateY(-5px);
    background: #a00000;
    box-shadow: 0 10px 20px rgba(139,0,0,0.4);
}

/* =========================================
   5. DUYURU KARTLARI
========================================= */
.announcements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-5px); }

.card-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-tag.alert { background: #fee2e2; color: #991b1b; }

/* Genel duyuru sol kenarlık */
.alert-card { border-left: 4px solid var(--accent-color); }

/* Haftanın sözü italik */
.quote-text {
    font-style: italic;
    color: var(--color-text-muted);
}

/* =========================================
   6. ARAMA KUTUSU
========================================= */
.search-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--color-border);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: var(--color-input-bg);
    color: var(--color-input-text);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-readable);
    box-shadow: 0 0 0 3px var(--color-border-focus);
}

.search-input::placeholder { color: var(--color-text-faint); }

/* =========================================
   7. RESTORAN KARTLARI
========================================= */
.featured { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.restaurant-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    animation: slideUp 0.6s ease forwards;
}

.restaurant-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,51,102,0.15);
}

.img-container {
    height: 200px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.restaurant-card:hover .img-container img { transform: scale(1.1); }

.card-body { padding: 25px; }

.btn-detail {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: 2px solid var(--primary-readable);
    background: transparent;
    color: var(--primary-readable);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-detail:hover {
    background: var(--primary-readable);
    color: white;
}

/* =========================================
   8. AÇIK / KAPALI ROZET
========================================= */
.card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
}

.card-status.open {
    background: var(--color-success-bg);
    color:       var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.card-status.closed {
    background: var(--color-danger-bg);
    color:       var(--color-danger-text);
    border: 1px solid var(--color-danger-border);
}

/* =========================================
   9. TESLİMAT ROZETLERİ
========================================= */
.card-delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-delivery-bg);
    border: 1px solid var(--color-delivery-border);
    color: var(--color-delivery-text);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-delivery-bg);
    border: 1px solid var(--color-delivery-border);
    color: var(--color-delivery-text);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* =========================================
   10. KAMPÜS DUYURULARI
========================================= */
.university-news { padding: 40px 0; }
.news-list { margin-top: 30px; }

.news-card {
    display: flex;
    background: var(--color-surface);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.8s ease forwards;
}

.news-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,51,102,0.1);
}

.news-date {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Yemekhane özel renk */
.yemekhane-date { background: var(--accent-color) !important; }

/* Haber başlığı — okunabilir mavi */
.news-title {
    color: var(--primary-readable);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Yemekhane başlığı — kırmızı */
.yemekhane-title {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.yemekhane-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 4px 0;
}

/* Boş / hata metinleri */
.empty-text {
    text-align: center;
    color: var(--color-text-faint);
    padding: 20px 0;
}

.error-text {
    color: var(--color-danger-text);
    text-align: center;
}

.no-result-text {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 20px;
}

/* =========================================
   11. FOOTER
========================================= */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    animation: slideUp 1s ease forwards;
}

footer p {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* =========================================
   12. RESTORAN DETAY SAYFASI
========================================= */
.restaurant-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 0;
    align-items: center;
}

.res-main-img {
    flex: 1 1 400px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.res-info-content { flex: 1 1 400px; }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.btn-social {
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.wp    { background: #25D366; }

/* =========================================
   13. MENÜ GRID
========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item {
    background: var(--color-surface);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-readable);
}

.item-name { font-weight: 600; color: var(--color-text); }

.item-price {
    color: var(--color-price-text);
    font-weight: 700;
    background: var(--color-price-bg);
    padding: 6px 12px;
    border-radius: 10px;
}

.menu-kat-baslik {
    grid-column: 1 / -1;
    color: var(--primary-readable);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    font-size: 22px;
    position: relative;
}

.menu-kat-baslik::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* =========================================
   14. STİCKY KATEGORİ BAR
========================================= */
#kategori-bar-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 900;
    background: var(--color-surface);
    box-shadow: 0 4px 16px rgba(0,51,102,0.08);
    padding: 0 20px;
    transition: box-shadow 0.3s ease;
}

#kategori-bar-wrapper.scrolled {
    box-shadow: 0 6px 24px rgba(0,51,102,0.14);
}

.kategori-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.kategori-bar::-webkit-scrollbar { display: none; }

.kat-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.kat-btn:hover {
    border-color: var(--primary-readable);
    color: var(--primary-readable);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,106,191,0.15);
}

.kat-btn.active {
    background: var(--primary-readable);
    border-color: var(--primary-readable);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26,106,191,0.35);
}

.kat-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.menu-kat-anchor { scroll-margin-top: 160px; }

/* Fade kenar efektleri */
#kategori-bar-wrapper::before,
#kategori-bar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 1;
    pointer-events: none;
}

#kategori-bar-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-surface), transparent);
}

#kategori-bar-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-surface), transparent);
}

/* =========================================
   15. KM PUAN SİSTEMİ
========================================= */
.km-puan-badge {
    background: linear-gradient(135deg, #1a5fa8, #2d8bff);
    color: #f1f5f9;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    letter-spacing: 0.6px;
    box-shadow: 0 0 8px rgba(45,139,255,0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.km-puan-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(45,139,255,0.7);
}

.puan-rozet {
    background: linear-gradient(135deg, #ffd84d, #ffb300);
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    box-shadow: 0 0 6px rgba(255,184,0,0.6);
}

/* =========================================
   16. SİPARİŞ KUTUSU
========================================= */
.siparis-box {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
}

.siparis-box.active {
    background: var(--color-info-bg);
    border: 2px dashed var(--primary-readable);
}

.siparis-box.active p {
    color: var(--color-info-text);
    font-weight: 600;
    margin-bottom: 10px;
}

.siparis-box.locked {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
}

.siparis-box.locked p {
    color: var(--color-text-faint);
    font-size: 14px;
    margin: 0;
}

.btn-siparis {
    background: linear-gradient(135deg, var(--primary-color), #0055aa);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-siparis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,51,102,0.3);
}

.btn-siparis:active { transform: scale(0.97); }

/* =========================================
   17. YORUM BÖLÜMÜ
========================================= */
.reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
}

.reviews-section h3 {
    font-size: 22px;
    color: var(--primary-readable);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.reviews-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.rating-badge span:first-child { font-size: 22px; }

.rating-count {
    color: var(--color-text-faint);
    font-size: 14px;
    font-weight: 400;
}

.rating-empty {
    color: var(--color-text-faint);
    font-size: 14px;
    margin-bottom: 10px;
}

.review {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-readable);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: slideUp 0.4s ease forwards;
}

.review:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26,106,191,0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-username {
    font-weight: 700;
    color: var(--primary-readable);
    font-size: 15px;
}

.review-rating {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning-text);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.review p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.no-reviews {
    color: var(--color-text-faint);
    text-align: center;
    padding: 20px;
    font-size: 15px;
}

.review-form {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.review-form h4 {
    color: var(--primary-readable);
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--color-border);
}

.review-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background: var(--color-input-bg);
    color: var(--color-input-text);
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-readable);
    box-shadow: 0 0 0 3px var(--color-border-focus);
}

.review-form textarea::placeholder { color: var(--color-text-faint); }

.review-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.review-form select {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--color-input-text);
    background: var(--color-select-bg);
    cursor: pointer;
    transition: border-color 0.3s;
    flex: 1;
    min-width: 160px;
}

.review-form select:focus {
    outline: none;
    border-color: var(--primary-readable);
}

.btn-review-submit {
    padding: 12px 28px;
    background: var(--primary-readable);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 160px;
}

.btn-review-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139,0,0,0.25);
}

.login-prompt {
    background: var(--color-info-bg);
    border: 2px dashed var(--primary-readable);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 20px;
}

.login-prompt a {
    color: var(--primary-readable);
    font-weight: 700;
    text-decoration: none;
}

.login-prompt a:hover { color: var(--accent-color); }

/* =========================================
   18. YEMEKHANE MENÜSÜ
========================================= */
.yemekhane-card { border-left: 4px solid var(--accent-color); }

.btn-yemekhane {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-yemekhane:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139,0,0,0.3);
}

/* =========================================
   19. AUTH SAYFASI
========================================= */
.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), #001f4d);
    height: 100vh;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
}

.auth-card {
    background: var(--color-surface);
    padding: 40px 30px;
    width: 360px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: slideUp 0.6s ease;
}

.auth-card input {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-input-text);
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--primary-readable);
    box-shadow: 0 0 0 2px var(--color-border-focus);
}

.auth-card input::placeholder { color: var(--color-text-faint); }

.btn-auth {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: var(--primary-readable);
    color: white;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: 0.25s;
}

.btn-auth:hover {
    background: var(--kbu-yellow);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* =========================================
   20. ANİMASYONLAR
========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes bgZoom {
    from { background-size: 100%; }
    to   { background-size: 110%; }
}

button { transition: transform 0.15s ease, box-shadow 0.15s ease; }
button:active { transform: scale(0.95) !important; }

/* =========================================
   21. SCROLLBAR
========================================= */
::-webkit-scrollbar { width: 8px; }

::-webkit-scrollbar-thumb {
    background: var(--primary-readable);
    border-radius: 10px;
}

/* =========================================
   22. DARK MODE
   Strateji: sadece CSS değişkenleri override edilir,
   bileşenler otomatik adapte olur.
========================================= */
body.dark-mode {
    --color-bg:        #0f172a;
    --color-surface:   #1e293b;
    --color-surface-2: #263347;
    --color-surface-3: #2f3f56;

    --color-text:       #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-faint: #64748b;

    --color-border:        rgba(255,255,255,0.10);
    --color-border-strong: rgba(255,255,255,0.18);
    --color-border-focus:  rgba(100,180,255,0.35);

    --color-success-bg:    rgba(46,125,50,0.20);
    --color-success-text:  #86efac;
    --color-success-border:rgba(46,125,50,0.40);

    --color-danger-bg:     rgba(139,0,0,0.22);
    --color-danger-text:   #fca5a5;
    --color-danger-border: rgba(139,0,0,0.45);

    --color-warning-bg:    rgba(230,160,0,0.20);
    --color-warning-text:  #fde68a;
    --color-warning-border:rgba(230,160,0,0.40);

    --color-info-bg:       rgba(0,51,102,0.30);
    --color-info-text:     #93c5fd;
    --color-info-border:   rgba(147,197,253,0.25);

    --color-delivery-bg:    rgba(230,81,0,0.20);
    --color-delivery-text:  #fdba74;
    --color-delivery-border:rgba(230,81,0,0.35);

    --color-input-bg:    #263347;
    --color-input-text:  #e2e8f0;
    --color-select-bg:   #263347;

    --color-price-bg:    rgba(46,125,50,0.25);
    --color-price-text:  #86efac;

    --shadow-sm:  0 4px 15px rgba(0,0,0,0.35);
    --shadow-md:  0 10px 30px rgba(0,0,0,0.45);
    --shadow-lg:  0 15px 40px rgba(0,0,0,0.55);

    /* Okunabilir mavi dark modda biraz daha açık */
    --primary-readable: #4d9fe8;

    /* Eski kısayollar */
    --white:      #1e293b;
    --bg-color:   var(--color-bg);
    --text-dark:  var(--color-text);
    --text-light: var(--color-text-muted);
}

/* Dark modda footer biraz daha koyu */
body.dark-mode footer {
    background: #001f40;
}

/* Dark modda "Giriş Yap" linki — daha parlak mavi */
body.dark-mode .btn-nav-login {
    color: #60a5fa !important;
}

body.dark-mode .btn-nav-login:hover {
    color: var(--kbu-yellow) !important;
}

/* Dark modda aktif kategori butonu */
body.dark-mode .kat-btn.active {
    box-shadow: 0 6px 18px rgba(77,159,232,0.35);
}


/* FOUC önleme — html elementine de dark-mode uygulanabilir */
html.dark-mode body,
html.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

/* =========================================
   23. MOBİL UYUMLULUK (GÜNCELLENEN KISIM)
========================================= */
@media (max-width: 768px) {

    .header-content {
        flex-direction: column;
        gap: 8px; /* 12px'den 8px'e düşürüldü */
        padding: 8px 15px; /* Üst-alt iç boşluk daraltıldı */
        min-height: auto; /* Varsayılan 80px ezildi */
    }

    /* Logo mobilde çok büyük kalıyordu, küçülttük */
    .logo-img {
        height: 45px; /* 90px'den 45px'e düşürüldü */
        margin-right: 0;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    /* Linklerin arasındaki mesafeyi biraz kıstık */
    nav a {
        margin: 0 8px;
        font-size: 14px; 
    }

    .navbar-auth,
    .navbar-right {
        width: 100%;
        justify-content: center;
    }

    /* Butonlar arasındaki boşluğu ve buton iç boşluklarını mobilde küçülttük */
    .auth-buttons {
        gap: 10px;
    }

    .btn-nav-register {
        padding: 6px 16px;
        font-size: 13px;
    }

    .btn-nav-login {
        font-size: 14px;
    }

    /* --- Aşağıdaki kısımlar senin mevcut kodundaki gibi kalabilir --- */
    .hero { height: 60vh; margin-top: 0; }
    .hero h1 { font-size: 26px; }
    /* ...diğer mobil ayarların... */
}
/* =========================================
   KBU MENÜ — OPTİMİZE EDİLMİŞ CSS
   (Animasyon + Mobil UX iyileştirmeleri)
========================================= */

:root {
    --primary-color:#003366;
    --primary-readable:#1a6abf;
    --accent-color:#8B0000;
    --kbu-yellow:#ffcc00;

    --color-bg:#f8fafc;
    --color-surface:#ffffff;
    --color-surface-2:#f1f5f9;

    --color-text:#1e293b;
    --color-text-muted:#64748b;
    --color-text-faint:#94a3b8;

    --color-border:#e2e8f0;
    --color-border-focus:rgba(0,51,102,0.25);

    --shadow-sm:0 4px 15px rgba(0,0,0,0.06);
    --shadow-md:0 10px 30px rgba(0,0,0,0.08);

    /* radius sistemi eklendi */
    --radius-sm:8px;
    --radius-md:12px;
    --radius-lg:20px;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
    font-family:'Inter',sans-serif;
    background:var(--color-bg);
    color:var(--color-text);
    line-height:1.6;
}

/* =========================================
   HERO (animasyon optimize edildi)
========================================= */
.hero{
    height:70vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:linear-gradient(rgba(26,106,191,0.72), rgba(0,51,102,0.55)),
    url('https://i.hizliresim.com/sxmrmz3.png') center/cover no-repeat;
    color:#fff;
    padding:0 20px;
}

/* =========================================
   KARTLAR (performans optimize)
========================================= */
.restaurant-card{
    background:var(--color-surface);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
    cursor:pointer;
    transition:transform .25s ease, box-shadow .25s ease;
    will-change:transform;
}

.restaurant-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,51,102,0.15);
}

/* MOBİL ETKİLEŞİM */
.restaurant-card:active{
    transform:scale(0.97);
}

/* =========================================
   BUTONLAR
========================================= */
button{
    transition:transform .15s ease, box-shadow .15s ease;
}

button:active{
    transform:scale(0.95);
}

/* kategori butonları */
.kat-btn{
    border:2px solid var(--color-border);
    border-radius:50px;
    padding:8px 18px;
    cursor:pointer;
    transition:all .2s ease;
}

.kat-btn:hover{
    transform:translateY(-2px);
}

.kat-btn:active{
    transform:scale(0.93);
}

/* scroll UX upgrade */
.kategori-bar{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
}

.kat-btn{
    scroll-snap-align:start;
}

/* =========================================
   IMAGE OPTIMIZATION
========================================= */
.img-container img{
    transition:transform .4s ease;
    will-change:transform;
}

.restaurant-card:hover .img-container img{
    transform:scale(1.08);
}

/* =========================================
   REDUCED MOTION (KRİTİK)
========================================= */
@media (prefers-reduced-motion: reduce){
    *{
        animation:none !important;
        transition:none !important;
    }
}

/* =========================================
   DARK MODE (korundu)
========================================= */
body.dark-mode{
    --color-bg:#0f172a;
    --color-surface:#1e293b;
    --color-text:#e2e8f0;
    --color-border:rgba(255,255,255,0.1);
    --primary-readable:#4d9fe8;
}

/* =========================================
   MOBİL
========================================= */
@media(max-width:768px){

    .restaurant-card{
        margin-bottom:15px;
    }

    .hero{
        height:60vh;
    }

    .kat-btn{
        padding:7px 14px;
        font-size:13px;
    }
}
/*kutucuk*/
.uyari-kutusu {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fffbe6, #fff3cd);
    border: 1px solid #f5c518;
    border-left: 5px solid #f5c518;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.uyari-kutusu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.uyari-kutusu .uyari-ikon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.uyari-kutusu p {
    margin: 0;
    font-size: 14.5px;
    color: #6b4f00;
    line-height: 1.6;
}

.uyari-kutusu p strong {
    color: #4a3500;
    font-weight: 600;
}