/* --- TEMA DEĞİŞKENLERİ (Aydınlık Mod) --- */
:root {
    /* Renk Paleti */
    --primary-color: #4F46E5; /* TayrApp'in Ana Rengi - Modern İndigo */
    --primary-hover: #4338CA;
    --secondary-color: #F43F5E; /* Bildirim ve Vurgu Rengi */
    
    /* Arka Planlar */
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    /* Metin Renkleri */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    
    /* Çizgi ve Gölgeler */
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.4);
}

/* --- TEMA DEĞİŞKENLERİ (Karanlık Mod) --- */
:root[data-theme="dark"] {
    /* Renk Paleti Güncellemeleri */
    --primary-color: #6366F1;
    --primary-hover: #4F46E5;
    --secondary-color: #FB7185;

    /* Arka Planlar */
    --bg-main: #0B0F19; /* Derin siyah/lacivert */
    --bg-surface: #151C2C;
    --bg-glass: rgba(21, 28, 44, 0.8);
    
    /* Metin Renkleri */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    /* Çizgi ve Gölgeler */
    --border-color: #1E293B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* --- GENEL SIFIRLAMALAR (Reset) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobilde butona basınca çıkan mavi parlamayı engeller */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- YARDIMCI SINIFLAR --- */
.hidden {
    display: none !important;
}

/* Cam Efekti (Apple tarzı pürüzsüz bulanıklık) */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
}

/* --- ALT MENÜ (Bottom Navigation) TASARIMI --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone çentik uyumluluğu */
    z-index: 9999;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 60px;
    transition: color 0.2s ease;
}

.nav-btn.active {
    color: var(--primary-color);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

/* Akıllı Orta Tuş Tasarımı */
.nav-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-15px); /* Menüden hafif yukarı taşar */
}

.smart-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #818CF8);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smart-btn:active {
    transform: scale(0.92);
}

.nav-center-wrapper .nav-label {
    margin-top: 8px;
    color: var(--text-primary);
}

/* YANDAN AÇILIR AYARLAR PANELİ (SIDE DRAWER) */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Başlangıçta ekranın sağında gizli */
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    right: 0; /* Açıldığında ekrana girer */
}

.panel-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.panel-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.close-panel-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    display: flex;
    cursor: pointer;
}

.panel-menu {
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.menu-item:active {
    background: rgba(79, 70, 229, 0.05);
}

.menu-item span {
    color: var(--text-secondary);
}

.theme-toggle-row {
    justify-content: space-between;
}

.theme-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}

.logout-btn {
    color: #EF4444;
    margin-top: auto;
}
.logout-btn span {
    color: #EF4444;
}

/* iOS Tarzı Şalter (Toggle Switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 26px; }
.slider.round:before { border-radius: 50%; }
