/* css/tema.css - ARTISAN BISTRO (Tam Sürüm) */

/* Yeni Fontları İçeri Alıyoruz */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Inter:wght@400;600;800&display=swap');

/* === 1. ANA RENK PALETİ (GÜNDÜZ) === */
:root {
    --bg-color: #EFECE6;       /* Kapadokya Taşı (Zemin) */
    --text-dark: #3A3530;      /* Acı Kahve / Toprak */
    --card-bg: #FFFFFF;        /* Temiz Kartlar */
    --border-color: #E2DFD8;   /* Yumuşak Çizgiler */
    --food-color: #D48C70;     /* Pastel Kiremit */
    --rent-color: #849C8A;     /* Adaçayı Yeşili */
    --action-color: #A39171;   /* Hasır Sarısı */
    --esnaf-color: #C4883A;
    --deneyim-color: #7B6FAB;
}

/* === 2. GECE MODU (SICAK KARANLIK) === */
body.dark-mode {
    --bg-color: #2D2B2A; 
    --text-dark: #F0EBE1; 
    --card-bg: #383534; 
    --border-color: #4F4A45;
    --action-color: #BFA882;
    --food-color: #C8906E;
    --rent-color: #7A9480;
    --esnaf-color: #E0A060;
    --deneyim-color: #9A8FCA;
}

/* === 3. TİPOGRAFİ VE TEMEL İSKELET === */
/* Genel Metinler, Butonlar ve Fiyatlar (Düz ve Net) */
body, button, input, select, textarea {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important; /* İtalik Yazı Kesinlikle Yasak */
    letter-spacing: -0.01em;
}

/* Başlıklar (Logolar, Sayfa Başlıkları, Mekan İsimleri - Asil Tırnaklı) */
h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif !important;
    font-weight: 900 !important;
    font-style: normal !important; /* Başlıklar dik ve kendinden emin */
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Sadece Ürün Açıklamaları İçin İtalik İzni (Opsiyonel) */
.desc-italic {
    font-family: 'Inter', sans-serif !important;
    font-style: italic !important;
    opacity: 0.8;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    transition: background-color 0.4s ease, color 0.4s ease;
    margin: 0; padding: 0;
}

/* === 4. SAYFA VE KART TASARIMLARI === */
.page { 
    display: none !important; 
    padding: 20px; 
    animation: fadeIn 0.4s ease-out; 
}

.page.active { 
    display: block !important; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.nav-card {
    border-radius: 28px; padding: 32px 20px; color: white; cursor: pointer; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    box-shadow: 0 12px 35px rgba(58, 53, 48, 0.08); transition: all 0.3s ease; text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.nav-card:active { transform: scale(0.97); }

/* Renk Gradyanları (Kategorilerin Arka Planları Geri Geldi) */
.rent-bg { background: linear-gradient(135deg, var(--rent-color), #6B8271); }
.food-bg { background: linear-gradient(135deg, var(--food-color), #BA7358); }

.list-card {
    background-color: var(--card-bg); border-radius: 22px; padding: 20px; 
    margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; 
    border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(58, 53, 48, 0.03);
    transition: all 0.3s ease;
}

/* === 5. MOBİL DOKUNMA VE BUTON İYİLEŞTİRMELERİ === */
button, .nav-card, .list-card, .opt-select-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-add {
    background-color: var(--bg-color); color: var(--text-dark); padding: 12px 24px; 
    border-radius: 16px; font-weight: 800; font-size: 11px; text-transform: uppercase; 
    border: 1px solid var(--border-color); cursor: pointer; transition: all 0.2s ease;
    touch-action: manipulation;
}
.btn-add:active { transform: scale(0.94); background-color: var(--border-color); }

.btn-main {
    background-color: var(--text-dark); color: var(--bg-color); width: 100%; padding: 18px; 
    border-radius: 18px; font-weight: 800; font-size: 13px; text-transform: uppercase; 
    border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(58, 53, 48, 0.15);
    transition: transform 0.2s ease, opacity 0.2s ease;
    touch-action: manipulation;
}
.btn-main:active { transform: scale(0.97); opacity: 0.9; }

/* === 6. AÇILIR PENCERELER (MODALS) VE SEPET BARI === */
#cart-bar {
    /* GÖRÜNÜRLÜKTEKİ ÖNCELİK SIRASI:
       1. JS inline style (style.display='flex') — en yüksek öncelik
       2. Bu CSS display:none — varsayılan gizli
       3. Tailwind hidden class — HTML'den kaldırılmalı, çakışma yaratır
       Kural: Yalnızca JS ile style.display kullanın, hidden class eklemeyin */
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 480px; 
    background-color: var(--text-dark); color: var(--bg-color); padding: 18px 26px; 
    border-radius: 100px; display: none; justify-content: space-between; align-items: center; 
    z-index: 100; box-shadow: 0 15px 35px rgba(58, 53, 48, 0.2); cursor: pointer;
}

.modal-overlay { position: fixed; inset: 0; background: rgba(45, 43, 42, 0.5); z-index: 1000; display: none; backdrop-filter: blur(6px); }

.modal-box { 
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    background-color: var(--card-bg); width: 92%; max-width: 440px; padding: 32px; 
    border-radius: 32px; z-index: 1001; display: none; max-height: 90vh; overflow-y: auto; 
    border: 1px solid var(--border-color); box-shadow: 0 30px 60px rgba(58, 53, 48, 0.15);
}

.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

.modal-box.open { display: block; }