/* secz/assets/css/style.css */

/*
Bu dosya, Tailwind CSS'in kapsamadığı veya özel animasyonlar/geçişler gibi
ek stiller için merkezi bir yer sağlar.
HTML dosyalarındaki <style> etiketleri içindeki tüm özel CSS kuralları
buraya taşınarak kod tekrarı önlenmiş ve merkezi yönetim sağlanmıştır.
Bu, bakım kolaylığı ve performans açısından daha iyi bir uygulamadır.
*/

/* Google Fonts - Inter fontunu dahil et */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Genel Body Stilleri */
/* Font ailesi Tailwind config'de tanımlanabilse de, @import ile birlikte burada da belirtilebilir. */
body {
    font-family: 'Inter', sans-serif;
}

/* Genel Animasyonlar */
/* Sayfa yüklenirken veya bir bölüm görünür olduğunda hafifçe belirme animasyonu */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Eczane Kartı Üzerine Gelindiğinde (Hover) Efekti */
/* pharmacy-card için Tailwind'de shadow-xl ve transition-all duration-300 hover:shadow-xl tanımlı. */
/* Bu kısım Tailwind ile çakışabilir, ancak translateY efekti için burada tutulabilir. */
.pharmacy-card:hover {
    transform: translateY(-3px);
}

/* Yapışkan Reklam Üzerine Gelindiğinde (Hover) Efekti */
.sticky-ad {
    transition: transform 0.3s;
}
.sticky-ad:hover {
    transform: scale(1.02);
}

/* Şehir Kartı Geçiş Efekti */
/* Tailwind'de transition-all duration-200 hover:shadow-md hover:border-primary tanımlı. */
/* Bu kısım Tailwind ile çakışabilir, ancak scale efekti için burada tutulabilir. */
.city-card {
    transition: all 0.2s ease;
}
.city-card:hover {
    transform: scale(1.03); /* Hafif büyütme */
    /* box-shadow Tailwind'den geliyor */
}

/* Seçili Şehir Kartı Stili */
.city-card.selected {
    border: 2px solid #0ea5e9; /* primary color */
    background-color: #e0f2fe; /* blue-100 */
}
.dark .city-card.selected {
    background-color: #1e3a8a; /* custom dark blue */
}

/* Tab Butonları Stili */
.tab-button {
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}
.tab-button.active {
    border-bottom-color: #0ea5e9; /* primary color */
    color: #0ea5e9; /* primary color */
    font-weight: 600;
}
.dark .tab-button.active {
    border-bottom-color: #60a5fa; /* lighter primary for dark mode */
    color: #60a5fa;
}

/* İlçe Butonu Geçiş Efekti */
.district-btn {
    transition: all 0.2s;
}

/* Aktif İlçe Butonu Stili */
/* Bu stil, HTML'deki Tailwind sınıfları ile birlikte çalışır. */
/* Örneğin: bg-primary text-white hover:bg-primary/90 dark:bg-primary dark:hover:bg-primary/90 */
/* Eğer bu aktif stilin override edilmesi isteniyorsa, buraya eklenebilir. */

/* Yükleme Spinner Stili */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0ea5e9; /* primary color */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Durum Noktası Animasyonu (Nöbetçi Etiketi İçin) */
.pulse {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } /* secondary color */
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
/* dot-pulse için de aynı animasyon kullanılabilir */
.dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981; /* secondary color */
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-animation 2s infinite; /* Ortak animasyon */
}


/* Harita Konteyneri */
.map-container {
    border-radius: 1rem; /* rounded-2xl */
    overflow: hidden;
    height: 300px; /* Varsayılan yükseklik */
    position: relative;
    /* Arka plan renkleri HTML'deki Tailwind sınıflarından geliyor (bg-gray-200 dark:bg-gray-900) */
}
/* Eczane detay sayfası için harita yüksekliği */
.eczane-detail-map-container {
    height: 450px; /* Daha yüksek harita */
}

/* Harita Üzeri Katman (Örneğin harita yüklenirken gösterilen mesaj) */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.6); /* Yarı şeffaf siyah arka plan */
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 2;
    transition: opacity 0.3s ease-in-out; /* Opaklık geçişi */
}
.map-overlay.hidden {
    opacity: 0;
}

/* Eczane İşaretçisi (Marker) */
/* Bu markerlar genellikle Google Maps API tarafından yönetilir, ancak özel bir kullanım varsa burada tanımlanır. */
/* HTML'de statik markerlar kullanılıyorsa bu stiller geçerli olur. */
.pharmacy-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ef4444; /* red-500 */
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1;
}
.eczane-detail-map-container .pharmacy-marker {
    width: 18px;
    height: 18px;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* Bilgi Penceresi (Harita Üzerinde) */
/* Bu stil, HTML'de özel bir bilgi penceresi oluşturulursa kullanılır. */
/* Genellikle Google Maps API'nin kendi bilgi pencereleri kullanılır. */
.info-window {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 0.75rem; /* rounded-xl */
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 280px;
    z-index: 5;
}
.dark .info-window {
    background: #1e293b; /* slate-800 */
    color: white;
}

/* Çalışma Saatleri Listesi */
.working-hours li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb; /* gray-200 */
}
.dark .working-hours li {
    border-bottom: 1px dashed #4b5563; /* gray-600 */
}
.working-hours li:last-child {
    border-bottom: none;
}
.working-hours li.today {
    font-weight: 600;
    color: #0ea5e9; /* primary color */
    background-color: #dbeafe; /* blue-100 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 8px 12px;
    margin: 0 -12px; /* Padding'i dengelemek için negatif margin */
}
.dark .working-hours li.today {
    background-color: #1e3a8a; /* custom dark blue */
    color: #60a5fa; /* lighter primary for dark mode */
}

/* Hizmet Rozetleri */
.service-badge {
    transition: all 0.2s ease;
}
.service-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Yol Tarifi Adımları (Eğer kullanılacaksa) */
/* Bu stil, HTML'de bir <ol class="direction-steps"> yapısı kullanılırsa geçerli olur. */
.direction-steps {
    list-style: none; /* Varsayılan liste stilini kaldır */
    counter-reset: step-counter; /* Sayaç başlat */
}
.direction-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}
.direction-steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #0ea5e9; /* primary color */
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}
.dark .direction-steps li:before {
    background: #1e40af; /* custom dark blue */
}

/* Müşteri Yorumları Kartları (Yorum sistemi devre dışı olsa da stil tutulabilir) */
.customer-review-card {
    transition: all 0.2s ease;
}
.customer-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Bilgi Sayfası için Prose Stili */
/* Tailwind Typography plugin'i kullanılmıyorsa bu stil faydalıdır. */
.prose {
    max-width: 80ch;
    margin-left: auto;
    margin-right: auto;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #0ea5e9; /* primary color */
}
.dark .prose {
    color: #e2e8f0; /* gray-200 */
}
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose h5, .dark .prose h6 {
    color: #60a5fa; /* lighter primary for dark mode */
}

/* Özellik kartları için geçiş efekti */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero bölümü için degrade arka plan */
.hero-gradient {
    background-image: linear-gradient(to right top, #0ea5e9, #00b0e0, #00b9d5, #00c0c7, #00c6b7); /* primary ve secondary renklerini kullanır */
}
.dark .hero-gradient {
    background-image: linear-gradient(to right top, #1e40af, #1d4ed8, #2563eb, #3b82f6, #60a5fa); /* custom dark blues */
}

/* Özel kaydırma çubuğu stili */
/* Webkit tabanlı tarayıcılar için (Chrome, Safari, Edge) */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1; /* Açık modda kaydırma çubuğu arka planı */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888; /* Açık modda kaydırma çubuğu rengi */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555; /* Açık modda hover rengi */
}

/* Karanlık mod için kaydırma çubuğu stili */
.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #333; /* Koyu modda kaydırma çubuğu arka planı */
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #666; /* Koyu modda kaydırma çubuğu rengi */
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #888; /* Koyu modda hover rengi */
}
