/* ŞEBİT EVİ - PREMIUM & DARK MODE DESIGN
   v3.0 - Footer Fix & Dark Mode
*/

/* --- 1. DEĞİŞKENLER & TEMEL AYARLAR --- */
:root {
    /* Varsayılan (Aydınlık) Tema */
    --primary-color: #4a2c2a;
    --accent-color: #d35400;
    --bg-body: #fdfbf7;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-btn: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-color: rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    
    --border-radius: 16px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Karanlık Mod Override */
body.dark-mode {
    --primary-color: #ffccbc;      /* Koyu modda daha yumuşak bir ana renk */
    --accent-color: #ff9f43;       /* Parlak turuncu */
    --bg-body: #121212;            /* Koyu gri arka plan */
    --bg-header: rgba(30, 30, 30, 0.95);
    --bg-card: #1e1e1e;
    --bg-btn: #2c2c2c;
    --text-dark: #ecf0f1;          /* Beyazımsı metin */
    --text-light: #b2bec3;
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* FOOTER'I EN ALTA İTMEK İÇİN GEREKLİ YAPI */
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    
    /* Flex Column Yapısı */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ekranın tamamını kapla */
    transition: background-color 0.3s, color 0.3s;
}

/* --- 2. HEADER TASARIMI --- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-body);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Sağ Üst Butonlar (Dark Mode + Arama) */
.action-buttons {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Arama Butonu */
.call-btn {
    background: #eaffea;
    color: #27ae60;
}
.call-btn:active { transform: scale(0.9); }

/* Karanlık Mod Butonu */
.theme-btn {
    background: var(--bg-btn);
    color: var(--text-dark);
}
.theme-btn:active { transform: scale(0.9); }

/* Dark mode aktifken arama butonu rengi */
body.dark-mode .call-btn {
    background: #1e3a2a;
    color: #2ecc71;
    border: none;
}

/* --- 3. KATEGORİ MENÜSÜ --- */
.category-nav {
    display: flex;
    gap: 12px;
    padding: 10px 20px 15px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 800px;
    margin: 0 auto;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
    background: var(--bg-btn);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.cat-btn.active {
    background: var(--primary-color);
    color: #fff; /* Yazı her zaman beyaz kalsın */
    border-color: var(--primary-color);
}
body.dark-mode .cat-btn.active {
    color: #2c3e50; /* Dark mode'da aktif buton yazısı koyu olsun (kontrast için) */
}

/* --- 4. ÜRÜN KARTLARI --- */
/* Main: flex-grow ile kalan boşluğu doldurur */
.menu-container {
    flex: 1;
    width: 100%; /* Mobil uyum için */
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: slideUp 0.5s ease forwards;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.img-box {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .img-box img { transform: scale(1.08); }

.info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 10px;
}

.info-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.price {
    background: rgba(211, 84, 0, 0.1);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 5. FOOTER --- */
.main-footer {
    text-align: center;
    margin-top: auto; /* Garanti olsun diye auto margin */
    padding: 30px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.social-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.insta-icon {
    font-size: 2.2rem;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-area span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-area a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.7;
}

/* Mobil İnce Ayar */
@media (max-width: 400px) {
    .product-card { padding: 12px; gap: 12px; }
    .img-box { width: 85px; height: 85px; }
    .info-header h3 { font-size: 0.95rem; }
    .price { font-size: 0.9rem; padding: 2px 6px; }
}