/* --- RENK PALETİ VE DEĞİŞKENLER (Okunabilirlik Artırıldı) --- */
:root {
    /* Ana arka plan için hafif siyah cam filmi (Ahşabın üstüne gelir) */
    --body-overlay: rgba(15, 15, 15, 0.4); 
    
    /* Kategori barı için saydamlık */
    --nav-bg: rgba(255, 255, 255, 0.1);
    
    --card-bg: rgba(255, 255, 255, 0.90); /* Kartlar hafif saydam, ahşabı hissettirir */
    --text-main: #111111; 
    --text-muted: #444444; 
    --accent-color: #1e8449; 
    --hero-overlay: rgba(0, 0, 0, 0.85); 
    --card-overlay: rgba(255, 255, 255, 0.85); 
}

/* Karanlık Mod Değişkenleri */
[data-theme="dark"] {
    /* Karanlık modda arka plan ahşabını iyice loş yapıyoruz */
    --body-overlay: rgba(5, 5, 5, 0.88); 
    
    --nav-bg: rgba(0, 0, 0, 0.4);
    
    --card-bg: rgba(25, 25, 25, 0.90); 
    --text-main: #ffffff; 
    --text-muted: #cccccc;
    --accent-color: #2ecc71;
    --hero-overlay: rgba(0, 0, 0, 0.90); 
    --card-overlay: rgba(20, 20, 20, 0.85); 
}

/* --- GENEL AYARLAR VE YENİ FONTLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: #222; /* Hata payı için yedek renk */
    background-image: linear-gradient(var(--body-overlay), var(--body-overlay)), url('ahsap.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Büyü burada: Ekran kaysa da ahşap sabit kalır */
    color: var(--text-main);
    overflow-x: hidden;
}

/* Başlıklara özel Lüks Restoran Fontu (Playfair Display) */
h1, h2, h3, .menu-card-title, .brand-title {
    font-family: 'Playfair Display', serif;
}

/* --- AÇILIŞ EKRANI (SPLASH SCREEN) --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('background.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(15px); /* Blur efekti 8'den 15'e çıkarıldı */
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Yazıların arkasına gölge eklendi */
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- TEPE ALANI (HERO SECTION) --- */
.hero-section {
    position: relative;
    height: 280px;
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* YENİ FADE EFEKTİ: Resmin alt kısmını %15'lik alanda saydamlaştırıp ahşaba eritir */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    margin-top: 20px;
}

.brand-logo {
    width: 140px; 
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.8)); 
    border-radius: 50%;
}

.brand-title {
    font-size: 1.6rem; 
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9); 
}

/* --- TEMA BUTONU --- */


/* --- KATEGORİ MENÜSÜ --- */
.category-nav {
    /* Kullanıcının "efsane oldu" dediği ahşap arka plan ve gradyan vernik efekti */
    background-image: linear-gradient(rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0.6)), url('ahsap.jpg');
    background-size: cover;
    background-position: center center;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--accent-color); /* Alt kenardaki yeşil çizgi */

    /* GÜNCELLEME: Üst kenara yatay, yeşil bir çizgi ekle (Slogan ve kategori çubuğu arasına) */
    border-top: 2px solid var(--accent-color);

    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

#category-list {
    display: flex;
    list-style: none;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 5px;
}

#category-list::-webkit-scrollbar { display: none; }
#category-list { -ms-overflow-style: none; scrollbar-width: none; }

#category-list li {
    padding: 8px 22px;
    background-color: var(--card-bg);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#category-list li.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
}

/* --- MENÜ KARTLARI KONTEYNERİ --- */
.menu-container {
    padding: 10px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- YENİ AHŞAP DOKULU YEMEK KARTLARI --- */
.menu-card {
    /* Sihir Burada: Altta ahşap resmi, üstte yazıyı okutacak yarı saydam katman */
    background-image: linear-gradient(var(--card-overlay), var(--card-overlay)), url('ahsap.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Kart gölgesi artırıldı */
    border: 1px solid rgba(128, 128, 128, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card:active {
    transform: scale(0.98);
}

.menu-card-img {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.menu-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.menu-card-title {
    font-size: 1.15rem; /* Başlıklar büyütüldü */
    font-weight: 700;
    color: var(--text-main);
}

.menu-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
}

.menu-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 500; /* Açıklamalar daha dolgun yapıldı */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Resimleri yan yana 2 sütün halinde dizer */
    gap: 15px; /* Resimler arası boşluk */
    padding-top: 5px;
}

.gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover; /* Resmi ezmeden kutuya oturtur */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.gallery-img:active {
    transform: scale(0.95);
}

/* --- AKILLI ÜST BAR (KAYMAYA DUYARLI) --- */
.smart-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px; /* GÜNCELLENDİ: 15px'ten 10px'e düşürüldü, bar inceldi */
    display: flex;
    justify-content: space-between;
    z-index: 900;
    transition: transform 0.4s ease-in-out;
    pointer-events: none; 
}

.smart-header.hidden {
    transform: translateY(-100%);
}

.header-btn {
    pointer-events: auto; 
    background: rgba(0, 0, 0, 0.5); /* Hafif daha koyu cam yapıldı */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    /* GÜNCELLENDİ: Buton boyutları 45px'ten 38px'e düşürüldü, daha kibar oldu */
    font-size: 1.1rem; 
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- SAĞDAN AÇILAN MENÜ (SIDE DRAWER) --- */
.side-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Başlangıçta ekranın sağında gizli */
    width: 280px;
    height: 100vh;
    background-image: linear-gradient(rgba(15,15,15,0.95), rgba(15,15,15,0.95)), url('ahsap.jpg');
    background-size: cover;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
}

.side-drawer.open {
    right: 0; /* JS ile class eklendiğinde ekrana girer */
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover { color: var(--accent-color); }

.drawer-content {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drawer-logo {
    width: 120px;
    margin-bottom: 30px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.drawer-links {
    list-style: none;
    width: 100%;
}

.drawer-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s, padding-left 0.2s;
}

.drawer-link:hover {
    color: var(--accent-color);
    padding-left: 20px; /* Üzerine gelince şık bir şekilde sağa kayar */
}

/* --- MODAL (CEP EKRANI) VE BLURLAMA TASARIMI --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* Deep overlay */
    backdrop-filter: blur(15px); /* Page blur */
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000; /* Over everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-overlay.show {
    opacity: 1;
}

/* Cep Ekranı Kartı (Örnekteki gibi) */
.modal-card {
    background-color: #ffffff; /* Modal light mode background */
    width: 90%;
    max-width: 400px;
    border-radius: 25px; /* Pronounced rounded corners */
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Deep shadow */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* For image mask */
    transition: background-color 0.3s;
}
/* Karanlık Mod Uyumlaması */
[data-theme="dark"] .modal-card {
    background-color: #1a1a1a; /* Dark modal background */
}

/* Yuvarlak Resim (Örnekteki gibi) */
.modal-image-container {
    width: 160px; 
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Image shadow */
    border: 4px solid #ffffff; /* Frame, and background for contrast */
    position: relative;
}
[data-theme="dark"] .modal-image-container {
    border-color: #1a1a1a;
}
.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kapat İkonu (X) - Üst Bar İkon Çerçeveli */
.modal-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5); /* Icon frame as requested in image_14.png */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.modal-close-icon:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Detay Yazıları */
.modal-info {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}
.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}
.modal-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}
.modal-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 15px;
}

/* Fiyat Pill'i (Örnekteki gibi) */
.modal-price-badge-container {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 40px; /* Aligned with title */
}
.modal-price-badge {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    background-color: rgba(11, 100, 48, 0.692); /* Teal/Green as in image_20.png */
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Ayırıcı ve Büyük Buton */
.modal-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(11, 100, 48, 0.692);
    margin: 15px 0 25px 0;
}
[data-theme="dark"] .modal-divider {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-close-button {
    width: 100%;
    background-color: rgba(11, 100, 48, 0.692); /* Teal/Green as in image_20.png */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.2s;
}
.modal-close-button:hover {
    background-color: rgba(11, 100, 48, 0.692);
    transform: translateY(-2px);
}
.modal-close-button:active {
    transform: translateY(1px);
}

/* --- LIGHTBOX (GALERİ POP-UP) TASARIMI --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Deep overlay for image focus */
    backdrop-filter: blur(20px); /* Page blur */
    -webkit-backdrop-filter: blur(20px);
    z-index: 2100; /* Over item modal and header */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.lightbox-overlay.show {
    opacity: 1;
}

/* Tam Ekran Resim (Ezmeden kutuya oturtur) */
.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); /* Deep shadow */
    transition: transform 0.3s;
}
.lightbox-overlay.show .lightbox-image {
    transform: scale(1.05); /* Şık bir açılış efekti */
}

/* Kapat İkonu (X) - Üst Bar İkon Çerçeveli */
.lightbox-close-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1); /* White transparent frame */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.lightbox-close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- HAKKIMIZDA MODALI TASARIMI --- */
.about-card {
    max-width: 500px;
    max-height: 85vh; /* Ekrana sığmazsa kaydırma çubuğu çıkarır */
    overflow-y: auto; 
    padding: 35px 25px;
    text-align: center;
}

.about-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-logo {
    width: 120px;
    margin-bottom: 25px;
    border-radius: 50%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}
[data-theme="dark"] .about-logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); }

.about-bios {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.bio-col { flex: 1; }

.bio-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-align: center;
}
.bio-title span {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.bio-text, .history-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-main);
    text-align: justify;
}

.history-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.about-history { margin-bottom: 25px; }

.about-contact {
    background: rgba(30, 132, 73, 0.1);
    padding: 20px;
    border-radius: 12px;
}
.contact-title {
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
.about-contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    margin: 5px 0;
}

/* Telefonlar için (Genişlik 480px altı) Usta ve İşletmeci alt alta insin */
@media (max-width: 480px) {
    .about-bios { flex-direction: column; }
}

/* --- YENİ: VİDEO LİNKİ TASARIMI --- */
.modal-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.2s;
}
.modal-video-link:hover {
    color: #0a4f50; /* Biraz daha koyu yeşil */
    transform: scale(1.05);
}
.modal-video-link i {
    font-size: 1.3rem;
}
