/* nobetcieczaneler.me - Modern, Sade ve Hızlı CSS (Sıfır Şişkinlik / Sıfır Framework) */
:root {
  --primary: #d32f2f;
  --primary-hover: #b71c1c;
  --primary-light: #ffebee;
  --secondary: #00796b;
  --secondary-hover: #004d40;
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --warning: #f57f17;
  --warning-bg: #fffde7;
  --dark: #212121;
  --gray: #616161;
  --light-gray: #f5f5f7;
  --border: #e0e0e0;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--light-gray);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-badge {
  background: var(--primary);
  color: var(--white);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.header-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-nav a:hover {
  background: var(--light-gray);
}

/* Hero Alanı */
.hero {
  background: var(--white);
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.hero-subtitle {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Konum & Arama Kutusu */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}

.btn-gps {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.3);
  transition: all 0.2s;
  width: 100%;
}

.btn-gps:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--light-gray);
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--white);
}

.btn-voice {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 4px;
  display: flex;
}

.btn-voice:hover {
  color: var(--primary);
}

/* Hızlı Etiketler */
.tag-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}
.tag-scroll::-webkit-scrollbar { display: none; }

.tag-btn {
  background: var(--light-gray);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tag-btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
  padding: 16px 0;
  align-items: center;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.5; }

/* Eczane Kartları */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pharmacy-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pharmacy-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.pharmacy-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.pharmacy-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-open {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  font-size: 0.8rem !important;
  padding: 4px 10px !important;
}

.badge-upcoming {
  background: var(--warning-bg);
  color: var(--warning);
}

.card-meta {
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.pharmacy-address {
  color: var(--dark);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}

.directions-note {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
}

.distance-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  background: var(--light-gray);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Butonlar */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  min-height: 48px; /* Dokunma hedefi */
}

.btn-call {
  background: var(--success);
  color: var(--white);
}
.btn-call:hover { background: #256b29; }

.btn-map {
  background: #1976d2;
  color: var(--white);
}
.btn-map:hover { background: #1565c0; }

.btn-street {
  background: var(--light-gray);
  color: var(--dark);
  grid-column: span 2;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  padding: 8px;
  min-height: 38px;
}
.btn-street:hover { background: #eeeeee; }

/* Şehir Grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

@media (min-width: 600px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .city-grid { grid-template-columns: repeat(4, 1fr); }
}

.city-card {
  background: var(--white);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.city-card:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.city-plate {
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--light-gray);
  padding: 2px 6px;
  border-radius: 4px;
}

/* SEO Metin & FAQ Alanı */
.seo-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  margin: 32px 0;
}

.seo-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  color: var(--gray);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  margin-top: 48px;
  font-size: 0.88rem;
  color: var(--gray);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-links a:hover { color: var(--primary); }

/* SVG İkon Yardımcıları */
.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}


/* Sürüm v1.3 - Yıldız Değerlendirmeleri, WhatsApp ve Kurumsal Eklentiler */

/* Gece / Karanlık Modu (Dark Mode) */
body.dark-mode {
  background-color: #0b0f19;
  color: #f1f5f9;
}
body.dark-mode .site-header,
body.dark-mode .hero,
body.dark-mode .pharmacy-card,
body.dark-mode .city-card,
body.dark-mode .seo-section,
body.dark-mode .site-footer,
body.dark-mode .login-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
body.dark-mode .pharmacy-name,
body.dark-mode .hero h1,
body.dark-mode .seo-section h2 {
  color: #f8fafc !important;
}
body.dark-mode .hero-subtitle,
body.dark-mode .pharmacy-address,
body.dark-mode .faq-answer {
  color: #94a3b8 !important;
}
body.dark-mode .tag-btn,
body.dark-mode .distance-info {
  background-color: #334155 !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .search-input {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Kurumsal Üst Menü */
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle-btn {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  transition: all 0.2s;
}
.theme-toggle-btn:hover {
  background: var(--border);
}
body.dark-mode .theme-toggle-btn {
  background: #334155;
  border-color: #475569;
}

/* Yıldız Derecelendirme (Google SERP Uyumlu) */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #eab308;
  font-weight: 700;
  margin-bottom: 8px;
}
.rating-stars .rating-score {
  background: #fef08a;
  color: #854d0e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}
body.dark-mode .rating-stars .rating-score {
  background: #854d0e;
  color: #fef08a;
}
.rating-count {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.82rem;
}
body.dark-mode .rating-count {
  color: #94a3b8;
}

/* Nöbet Saatleri Rozeti */
.duty-hours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
body.dark-mode .duty-hours {
  background: #0c4a6e;
  color: #bae6fd;
}

/* WhatsApp Butonu */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #1eb956;
}

/* Telefon Açık Metin */
.phone-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.dark-mode .phone-text {
  color: #f8fafc;
}

/* Diğer İlçeler / Mahalleler: Taşmayan Esnek Izgara (Flex-Wrap) */
.district-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.district-pill {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.district-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
body.dark-mode .district-pill {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
body.dark-mode .district-pill:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Eczane Nöbet Arşivi Tablosu */
.duty-archive-box {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}
body.dark-mode .duty-archive-box {
  background: #0f172a;
  border-color: #334155;
}
