:root {
    --primary-color: #003366; /* KBU Mavisi */
    --accent-color: #8B0000;  /* Koyu Kırmızı */
    --kbu-yellow: #ffcc00;    /* KBU Sarısı */
    --bg-color: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    animation: fadeIn 0.8s ease-in;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   1. HEADER VE NAVBAR
========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    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 {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.05); }

.logo-img {
    height: 45px;
    margin-right: 12px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-dark);
    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); }

/* AUTH VE KULLANICI MENÜSÜ */
.navbar-auth {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    flex-direction: row !important; /* Her zaman yan yana kalsınlar */
    gap: 15px;
    align-items: center;
}

.btn-nav-login {
    color: var(--primary-color) !important; /* JS'deki gizlenen beyazı ezdik */
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.btn-nav-login:hover { color: var(--accent-color) !important; }

.btn-nav-register {
    background: var(--primary-color);
    color: var(--white) !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(0,51,102,0.2);
}

.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 span {
    color: var(--primary-color) !important;
}

/* =========================================
   2. HERO BÖLÜMÜ (ANA EKRAN)
========================================= */
.hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.6)), 
                url('images/kampus.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 0 20px;
    animation: bgZoom 15s infinite alternate; 
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    animation: slideUp 0.8s ease forwards;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    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);
}

/* =========================================
   3. KARTLAR VE RESTORANLAR
========================================= */
.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(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); }

.card-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}
.card-tag.alert { background: #fee2e2; color: #991b1b; }

.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(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideUp 0.6s ease forwards;
}

.restaurant-card:hover { 
    transform: translateY(-10px); 
    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-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-detail:hover { background: var(--primary-color); color: white; }

/* =========================================
   4. KAMPÜS DUYURULARI (GERİ GELDİ!)
========================================= */
.university-news { padding: 40px 0; }
.news-list { margin-top: 30px; }

.news-card {
    display: flex;
    background: var(--white);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.8s ease forwards;
}

.news-card:hover {
    transform: translateX(10px); /* Üstüne gelince sağa doğru şıkça kayar */
    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;
}

/* =========================================
   5. FOOTER (GERİ GELDİ!)
========================================= */
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;
}

/* =========================================
   6. RESTORAN DETAY SAYFASI ÖZEL
========================================= */
.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; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item {
    background: white;
    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 #edf2f7;
    transition: transform 0.2s ease;
}

.menu-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.item-name { font-weight: 600; color: var(--text-dark); }
.item-price { 
    color: #2e7d32; 
    font-weight: 700; 
    background: #e8f5e9;
    padding: 6px 12px;
    border-radius: 10px;
}

.menu-kat-baslik {
    grid-column: 1 / -1;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    font-size: 22px;
    position: relative;
}

.menu-kat-baslik::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* =========================================
   7. ANİMASYON TANIMLAMALARI
========================================= */
@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:active { transform: scale(0.95) !important; }

/* =========================================
   8. MOBİL UYUMLULUK SİHRİ (MEDIA QUERIES)
========================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Giriş / Kayıt ol tuşları mobilde ortalansın ve YAN YANA kalsın */
    .navbar-auth {
        width: 100%;
        justify-content: center;
    }

    .hero { height: 60vh; margin-top: 10px;}
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero button { width: 100%; font-size: 16px; padding: 12px; }

    .announcements { margin-top: -30px; }

    .restaurant-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 20px;
    }
    
    .res-main-img { width: 100%; height: 250px; }

    .social-links {
        justify-content: center;
        flex-direction: column; 
    }

    .btn-social {
        justify-content: center; 
        width: 100%;
    }

    .search-container input { padding: 12px; font-size: 14px; }
}