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

/* ID hedefli bir yere tıklandığında sabit navbar'ın yüksekliği kadar üstten boşluk bırakır */
[id] {
    scroll-margin-top: 90px;
}

body {
    /* Logodaki açık mavi/gri tonlarından esinlenen modern ve ferah arka plan */
    background-color: #f1f5f9;
    padding-top: 80px; 
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

html, body {
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
    /* Koyu mavi tonu geçişli arka plan */
    background: linear-gradient(135deg, #162a45, #1a365d);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #cbd5e1;
}

/* ORTALAMA VE GENİŞLİK KONTROLÜ */
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    padding: 0 20px;
    /* Elemanları sola, ortaya ve sağa kusursuz dağıtır */
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

/* LOGO VE YAZI ALANI (Resim ve Yazıyı Yan Yana Hizalar) */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Logo ile yazı arasındaki boşluk */
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0; /* Logonun sıkışmasını önler */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* LOGO GÖRSELİ (Devasa büyümesini engelleyen kritik kısım) */
.logo-img {
    height: 50px !important;
    /* Navbar 80px olduğu için 50px tam ideal boyuttur */
    width: auto;
    object-fit: contain;
}

/* MENU (Orta Kısımdaki Linkler) */
.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap; 
    transition: all 0.3s ease;
}

.menu a:hover {
    text-decoration: none;
    color: #60a5fa;
}

/* YÖNETİM PANELİ BUTONU (Tamamen Sağdaki Parça) */
.admin-btn {
    background-color: #1d4ed8; 
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid transparent; 
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background-color: #1e40af; 
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.4);
    color: #fff !important;
}

/* JavaScript Tıklama Sınıfı */
.admin-btn.clicked {
    background-color: transparent !important; 
    color: #1d4ed8 !important; 
    border-color: #1d4ed8 !important;
    box-shadow: none !important;
}

/* SLIDER */
.slider {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slides img {
    flex: 0 0 100%;
    height: 450px;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 42, 69, 0.7); 
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(29, 78, 216, 0.9);
}

.prev { left: 10px; }
.next { right: 10px; }

/* TANITIM BÖLÜMÜ */
.tanitim {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.section-divider {
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, #1d4ed8, transparent); 
    margin: 40px auto;
    border-radius: 10px;
}

.tanitim, .hak {  
    margin-bottom: 20px;
    color: #0f172a;
}

.tanitim p {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin: 15px 0;
}

.tanitim, .tar {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #0f172a;
}

.tanitim h3 {
    text-align: left;
    color: #1e3a8a; 
    margin-top: 20px;
}

.ant {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
    padding: 0;
}

/* YEMEKLER GRID */
.bursa-foods {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.food-box {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.food-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.food-box h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1e3a8a;
}

.food-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

/* TARİHİ YERLER KARTLARI */
.bursa-cards {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.bursa-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease;
}

.bursa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.1);
}

.bursa-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.card-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card-content h3 a:hover {
    color: #1d4ed8;
}

.card-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

/* YORUM ALANI */
.yorum-alani {
    width: 50%;
    margin-top: 50px;
    margin-left: 25%;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
}

.yorum-alani h3 {
    margin-bottom: 15px;
    color: #0f172a;
}

.yorum-alani input,
.yorum-alani textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    outline: none;
    transition: 0.3s;
    font-size: 14px;
}

.yorum-alani input:focus,
.yorum-alani textarea:focus {
    border-color: #1d4ed8;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(29, 78, 216, 0.2);
}

.yorum-alani button {
    margin-top: 15px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.yorum-alani button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 78, 216, 0.3);
}

/* YORUM KARTI */
.yorum {
    background: #f8fafc;
    margin-top: 15px;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #1d4ed8; 
    position: relative;
    transition: 0.3s;
}

.yorum:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.yorum strong {
    color: #1e3a8a;
    font-size: 15px;
}

.yorum small {
    display: block;
    color: #94a3b8;
    margin-top: 3px;
    font-size: 12px;
}

.yorum p {
    margin-top: 10px;
    color: #475569;
    line-height: 1.5;
}

#yorumListesi {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 5px;
}

#yorumListesi::-webkit-scrollbar {
    width: 6px;
}

#yorumListesi::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#yorumListesi::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* SITE FOOTER */
.site-footer {
    background-color: #0f172a;
    color: #f8fafc;
    margin-top: 80px;
    font-size: 14px;
    border-top: 4px solid #1d4ed8; 
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #60a5fa; 
}

.footer-left p {
    max-width: 320px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-right ul {
    list-style: none;
}

.footer-right li {
    margin-bottom: 10px;
}

.footer-right a {
    text-decoration: none;
    color: #94a3b8;
    transition: 0.3s;
}

.footer-right a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 15px 10px;
    color: #64748b;
}

/* ==========================================================================
   YÖNETİM PANELİ (ADMIN) STİLLERİ
   ========================================================================== */
.admin-container {
    max-width: 1100px;
    margin: 100px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.logout-btn {
    padding: 8px 16px;
    background-color: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.admin-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}
.admin-section h3 {
    color: #1e3a8a;
    margin-top: 0;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 10px;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #334155;
}
.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}
.save-btn {
    padding: 10px 20px;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}
.admin-table th, .admin-table td {
    border: 1px solid #cbd5e1;
    padding: 12px;
    text-align: left;
}
.admin-table th {
    background-color: #1e3a8a;
    color: white;
}
.delete-btn {
    padding: 5px 10px;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================================================
   MOBİL VE TABLET UYUMLULUK (RESPONSIVE) AYAR LARI
   ========================================================================== */

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 15px 0;
        position: relative; 
    }

    .navbar-container {
        height: auto;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .menu a {
        font-size: 15px;
    }

    .admin-btn {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    .slider {
        height: 250px;
        margin: 15px auto;
    }

    .slides img {
        height: 250px;
    }

    .tanitim {
        margin: 20px 10px;
        padding: 15px;
    }

    .tanitim p {
        font-size: 15px;
        text-align: left;
    }

    .bursa-foods, .bursa-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
    }

    .food-box, .bursa-card {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .yorum-alani {
        width: 90% !important;
        margin-left: 5% !important;
        padding: 15px;
    }
}