/* ==========================================================================
   ANTİKOR EKOSİSTEMİ & MOBİL ALT BAR (BOTTOM NAV) - v2.7 (2026)
   Telif Hakkı (c) 2026 Korkut Yazılım ve Medya A.Ş.
   ========================================================================== */

/* Mobil Alt Bar - Masaüstünde Kesinlikle Gizli */
.mobile-bottom-nav {
  display: none !important;
}

/* Sadece Mobil Ekranlarda (<= 768px) Görünür */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    margin: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body.dark-mode .mobile-bottom-nav {
    background: rgba(17, 24, 39, 0.97) !important;
    border-top-color: rgba(55, 65, 81, 0.9) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.45) !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.2s ease;
    padding: 6px 0;
    border-radius: 8px;
  }

  body.dark-mode .mobile-nav-item {
    color: #94a3b8;
  }

  .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
  }

  .mobile-nav-item.active {
    color: #dc2626 !important;
    font-weight: 700;
  }

  body.dark-mode .mobile-nav-item.active {
    color: #ef4444 !important;
  }

  .mobile-nav-item.active i {
    transform: translateY(-2px) scale(1.15);
    color: #dc2626 !important;
  }

  body.dark-mode .mobile-nav-item.active i {
    color: #ef4444 !important;
  }

  .mobile-nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: 22%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc2626;
    border: 2px solid #ffffff;
    animation: pulseBadge 1.8s infinite;
  }

  body.dark-mode .mobile-nav-item .nav-badge {
    border-color: #111827;
  }

  @keyframes pulseBadge {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  }
}

/* ==========================================================================
   ECZANE, OTOBÜS, TAZİYE & ACİL DURUM BİLEŞENLERİ
   ========================================================================== */

/* Kahta Nöbetçi Eczane Sidebar Widget */
.sidebar-nobetci-widget {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

body.dark-mode .sidebar-nobetci-widget {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nobetci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .nobetci-header {
  border-bottom-color: #334155;
}

.nobetci-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .nobetci-title {
  color: #f8fafc;
}

.nobetci-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

body.dark-mode .nobetci-card-item {
  background: #0f172a;
  border-color: #334155;
  border-left-color: #ef4444;
}

.nobetci-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.nobetci-name {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-mode .nobetci-name {
  color: #ef4444;
}

.nobetci-day-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
}

body.dark-mode .nobetci-day-badge {
  background: #450a0a;
  color: #fca5a5;
}

.nobetci-address {
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.4;
}

body.dark-mode .nobetci-address {
  color: #94a3b8;
}

.nobetci-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.nobetci-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nobetci-btn-call {
  background: #10b981;
  color: #ffffff !important;
}

.nobetci-btn-call:hover {
  background: #059669;
  color: #ffffff !important;
}

.nobetci-btn-map {
  background: #e2e8f0;
  color: #1e293b !important;
}

body.dark-mode .nobetci-btn-map {
  background: #334155;
  color: #f8fafc !important;
}

.nobetci-btn-map:hover {
  background: #cbd5e1;
}

/* Kahta Taziyeler Vitrini (Sadece Kahta) */
.kahta-taziye-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  margin: 32px 0 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .kahta-taziye-section {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.taziye-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.taziye-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark-mode .taziye-title {
  color: #f8fafc;
}

.taziye-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.taziye-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
}

body.dark-mode .taziye-card {
  background: #0f172a;
  border-color: #334155;
}

.taziye-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.taziye-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-mode .taziye-name {
  color: #f8fafc;
}

.taziye-badge-kahta {
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.taziye-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
  line-height: 1.4;
}

body.dark-mode .taziye-info-row {
  color: #94a3b8;
}

.taziye-info-row i {
  color: #0284c7;
  width: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Künye Modal */
.kunye-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.kunye-modal-overlay.open {
  display: flex;
}

.kunye-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  padding: 28px;
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .kunye-modal-content {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.kunye-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

body.dark-mode .kunye-modal-close {
  background: #1e293b;
  color: #94a3b8;
}

.kunye-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.kunye-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

body.dark-mode .kunye-title {
  color: #f8fafc;
  border-bottom-color: #1e293b;
}

.kunye-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.kunye-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
}

body.dark-mode .kunye-item {
  background: #1e293b;
  border-color: #334155;
}

.kunye-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #dc2626;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

body.dark-mode .kunye-label {
  color: #ef4444;
}

.kunye-value {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

body.dark-mode .kunye-value {
  color: #f8fafc;
}

.kunye-value a {
  color: #0284c7;
  text-decoration: underline;
}

.kunye-footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

body.dark-mode .kunye-footer-note {
  border-top-color: #334155;
  color: #94a3b8;
}
