/* Genel Ayarlar ve Font İçe Aktarma */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;500;700&display=swap');

body {
    font-family: 'Lato', sans-serif; /* Gövde metni fontu */
    margin: 0;
    padding: 0;
    background-color: #F8F8F8; /* Hafif Krem */
    color: #333333; /* Koyu Gri */
    line-height: 1.6;
    font-size: 16px; /* Temel font boyutu */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Başlık fontu */
    color: #282828; /* Daha koyu gri */
    margin-top: 0;
    margin-bottom: 0.8em;
    font-weight: 500;
}

a {
    color: #B8860B; /* Altın Sarısı - Bağlantı rengi */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A0740A; /* Altın sarısının daha koyu tonu */
}

/* Header (Başlık Çubuğu) */
header {
    background-color: #282828; /* Koyu Gri/Siyah */
    color: #F8F8F8;
    padding: 1.2rem 0; /* Hafifçe azaltılmış padding */
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky; /* İsteğe bağlı: Sabit başlık */
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 2.5em; /* Biraz küçültülmüş */
    margin: 0;
    letter-spacing: 1.5px; /* Hafifçe azaltılmış harf aralığı */
    font-weight: 700;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: #E0E0E0;
    text-decoration: none;
    margin: 0 20px; /* Hafifçe azaltılmış boşluk */
    font-weight: 400; /* Normal ağırlık */
    font-size: 1.05em; /* Biraz küçültülmüş */
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

header nav a:hover,
header nav a.active {
    color: #B8860B; /* Altın Sarısı */
}

/* Ana İçerik Alanı */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto;
    padding: 25px; /* Hafifçe azaltılmış */
    background-color: #ffffff;
    border-radius: 10px; /* Hafifçe azaltılmış */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); /* Gölge yumuşatıldı */
}

.container h2 { /* Genel sayfa başlıkları için stil */
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #B8860B;
}

/* Kategori Filtresi (eğer eklenirse) */
.category-filter {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EDEDED;
}
.category-filter a {
    display: inline-block;
    margin: 5px 8px;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #D0D0D0;
    color: #555555;
    background-color: #FDFDFD;
    font-weight: normal;
    font-size: 0.95em;
    transition: all 0.3s ease;
}
.category-filter a:hover,
.category-filter a.active {
    background-color: #B8860B;
    color: white;
    border-color: #B8860B;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

/* Menü Öğeleri */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Kart genişliği ayarlandı */
    gap: 25px;
    margin-top: 25px;
}

.menu-item-card {
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    padding: 20px;
    text-align: left; /* İçerik sola yaslandı */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.menu-item-card img {
    width: 100%; /* Genişlik %100 */
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.menu-item-card h3 { /* Ürün adı */
    font-size: 1.6em; /* Biraz küçültüldü */
    margin-bottom: 8px;
    color: #282828;
    font-weight: 700;
}

.menu-item-card p.category-name {
    font-size: 0.8em;
    color: #777;
    margin-top: -5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
}

.menu-item-card .description {
    font-size: 0.9em; /* Biraz küçültüldü */
    color: #555; /* Rengi biraz koyulaştırıldı */
    min-height: 55px; /* Açıklama alanı için esnek yükseklik */
    margin-bottom: 15px;
    flex-grow: 1; /* Kartın alt kısmına doğru itmek için */
}

.menu-item-card .price {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #B8860B;
    font-size: 1.6em; /* Fiyat daha belirgin */
    margin-bottom: 18px;
    text-align: right; /* Fiyat sağa yaslı */
}

/* AR Model Görüntüleyici */
.ar-model-container {
    padding-top: 15px;
    border-top: 1px dashed #E0E0E0;
    margin-top: auto; /* Fiyat ve açıklama sonrası aşağı iter */
}

model-viewer {
    width: 100%;
    height: 280px;
    background-color: #FDFDFD;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
    --progress-bar-color: #B8860B; /* Yükleme çubuğu rengi */
    --progress-bar-height: 4px;
}

.ar-button { /* model-viewer içindeki AR butonu */
    background-color: #0A360A; /* Derin Orman Yeşili */
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em; /* Biraz küçültüldü */
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    border: none;
    cursor: pointer;
}

.ar-button:hover {
    background-color: #082F08; /* Hover rengi */
}

.ar-button img {
    filter: invert(1);
    height: 20px; /* İkon boyutu */
    width: 20px;
}

.ar-info, .no-ar-info {
    font-size: 0.8em;
    color: #888;
    margin-top: 8px;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

/* Footer (Alt Bilgi) */
footer {
    background-color: #282828;
    color: #E0E0E0;
    padding: 1.5rem 0;
    margin-top: 40px;
    font-size: 0.85em;
    text-align: center;
}
footer p {
    margin: 0;
}

/* Admin Paneli Formları ve Tabloları */
.admin-form {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 25px;
}

.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.9em;
    color: #444;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
    width: calc(100% - 24px);
    padding: 10px 12px; /* Padding ayarlandı */
    margin-bottom: 18px;
    border: 1px solid #ccc; /* Kenarlık rengi belirginleştirildi */
    border-radius: 6px;
    font-size: 1em;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
    font-family: 'Lato', sans-serif;
}
.admin-form input[type="file"] {
    padding: 8px; /* Dosya inputu için özel padding */
}

.admin-form textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-form button[type="submit"] {
    background-color: #0A360A; /* Admin butonları için de yeşil */
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05em;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-form button[type="submit"]:hover {
    background-color: #082F08;
}

/* Admin Tabloları */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; /* Köşelerin yuvarlak görünmesi için */
}

th, td {
    padding: 12px 15px; /* Padding artırıldı */
    text-align: left;
    border-bottom: 1px solid #eaeaea; /* Daha ince ayırıcı */
}

th {
    background-color: #f0f0f0;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #444;
    font-size: 1.05em;
}

tr:nth-child(even) {
    background-color: #fdfdfd;
}

tr:hover {
    background-color: #f5f5f5; /* Hover rengi */
}

td img { /* Tablodaki görseller */
    border-radius: 4px;
    border: 1px solid #ddd;
}

.action-buttons a, .action-buttons button {
    display: inline-block;
    padding: 7px 12px; /* Buton boyutu ayarlandı */
    margin-right: 6px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85em;
    cursor: pointer;
    border: none;
    color: white;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    transition: opacity 0.2s ease;
}
.action-buttons a:hover, .action-buttons button:hover {
    opacity: 0.85;
}

.action-buttons .edit {
    background-color: #B8860B; /* Altın sarısı */
}

.action-buttons .delete {
    background-color: #c0392b; /* Kırmızı */
}

/* Mesajlar (Başarı, Hata) */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95em;
    text-align: center;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobil Uyum (Basit Örnek) */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    header nav a {
        margin: 0 10px;
        font-size: 0.95em;
    }
    .container {
        width: 95%;
        padding: 15px;
    }
    .menu-items {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    .menu-item-card h3 {
        font-size: 1.4em;
    }
    .menu-item-card .price {
        font-size: 1.4em;
    }
    model-viewer {
        height: 250px;
    }
    .admin-form input[type="text"],
    .admin-form input[type="number"],
    .admin-form input[type="file"],
    .admin-form textarea,
    .admin-form select {
        width: calc(100% - 20px); /* Mobil için padding ayarı */
    }
    th, td {
        padding: 8px 10px;
        font-size: 0.9em; /* Tablo yazı boyutu */
    }
    .action-buttons a, .action-buttons button {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}