/* --- MEVCUT CSS TASARIMINIZ --- */

/* İnce Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }

body { 
    font-family: 'Inter', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
    /* Alt boşluk ayarı güncellendi - footer için esneklik sağlandı */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* React root genişlesin, footer en alta itilsin */
#root {
    flex: 1;
}

/* Cam Efektli Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dark .glass-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Premium Kart Tasarımı */
.premium-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.8);
}
.dark .premium-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Rota Çizgisi Animasyonları */
.route-line {
    position: absolute; left: 23px; top: 0; bottom: 0; width: 2px;
    background: #e2e8f0; z-index: 0;
}
.dark .route-line { background: #334155; }

.route-active-line {
    position: absolute; left: 23px; top: 0; width: 2px;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    z-index: 0; transition: height 1.5s ease-out;
}

/* Altın Nabız Efekti (Mekke/Medine için) */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.animate-pulse-gold { animation: pulse-gold 2s infinite; }

/* Sayfa Geçiş Efekti */
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- LEGAL FOOTER STİLLERİ (GÜNCELLENDİ) --- */
.legal-footer {
    position: relative;
    width: 100%;
    z-index: 10;
    /* Hafif üst border ile ayrım */
    border-top: 1px solid rgba(0,0,0,0.03);
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
    
    /* React içinde component olarak kullanıldığında gerekli boşluklar */
    margin-top: 3rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.dark .legal-footer {
    border-top: 1px solid rgba(255,255,255,0.03);
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.3));
}

/* --- PWA VE YÜKLEME ÖZELLİKLERİ --- */

/* 1. Sadece Uygulama Modunda (Standalone) Geçerli Kurallar */
@media all and (display-mode: standalone) {
    /* Install Butonlarını Gizle */
    #install-button, 
    .pwa-install-element,
    [data-install-btn="true"],
    .install-banner {
        display: none !important;
    }

    /* Footer mobilde güvenli alana otursun */
    .legal-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* 2. Toast Bildirim Ayarları */
#install-toast, #exit-toast {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

#install-toast.opacity-100, #exit-toast.opacity-100 {
    transform: translate(-50%, -20px);
}

/* 3. iOS Çentik Uyumluluğu */
@supports (padding: env(safe-area-inset-top)) {
    .glass-header {
        padding-top: env(safe-area-inset-top);
    }
}

/* 4. Kaydırma Davranışı */
html, body {
    overscroll-behavior-y: contain;
}
