/* ============================================================
   AcilNöbet - Ana Stil Dosyası
   Mobile-First | Bootstrap 5 Üzerine
   ============================================================ */

:root {
  --kirmizi: #e74c3c;
  --kirmizi-koyu: #c0392b;
  --turuncu: #e67e22;
  --sari: #f39c12;
  --mavi: #3498db;
  --yesil: #27ae60;
  --mor: #8e44ad;
  --koyu: #1a1a2e;
  --gri: #f8f9fa;
  --yazi: #2d3436;
  --premium-altin: #f6c90e;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--yazi);
  background: #fff;
  overflow-x: hidden;
}

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #c0392b 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  opacity: 0.9;
  margin-bottom: 0;
}

.search-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 20px;
  color: white;
}

.stat-item i { font-size: 1.3rem; margin-bottom: 4px; }
.stat-item strong { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.stat-item span { font-size: 0.72rem; opacity: 0.85; text-align: center; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

@media (max-width: 576px) {
  .stat-item { padding: 8px 12px; }
  .stat-divider:nth-child(4) { display: none; }
}

/* ─── KATEGORİ KARTLARI ─────────────────────────────────────── */
.category-card {
  background: #fff;
  border-radius: 16px;
  border: 2px solid #f0f0f0;
  text-decoration: none;
  color: var(--yazi);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--kirmizi);
  box-shadow: 0 12px 32px rgba(231,76,60,0.15);
  color: var(--yazi);
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.2s;
}

.category-card:hover .cat-icon {
  transform: scale(1.1);
}

.cat-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.cat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 6px;
}

/* ─── ŞEHİR GRID ─────────────────────────────────────────────── */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.city-pill {
  display: inline-block;
  padding: 7px 16px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--yazi);
  text-decoration: none;
  transition: all 0.2s;
}

.city-pill:hover {
  background: var(--kirmizi);
  border-color: var(--kirmizi);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}

/* ─── SECTION TITLE ──────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ─── NASIL ÇALIŞIR ──────────────────────────────────────────── */
.how-card {
  background: #fff;
  border-radius: 16px;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.how-card:hover { border-color: var(--kirmizi); }
.how-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--kirmizi);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

/* ─── PREMIUM PROMO ──────────────────────────────────────────── */
.premium-promo {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.premium-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(231,76,60,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.premium-features li {
  padding: 8px 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(246,201,14,0.4);
  border-radius: 20px;
  padding: 32px;
  color: white;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--premium-altin);
  color: #333;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 20px;
  border-radius: 50px;
}

.pricing-period { font-size: 0.9rem; opacity: 0.7; margin-top: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--premium-altin); line-height: 1.2; }
.pricing-desc { font-size: 0.85rem; opacity: 0.7; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer-main {
  background: #111827;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--kirmizi); }

/* ─── LİSTELEME SAYFASI ──────────────────────────────────────── */

/* Premium Esnaf Kartı */
.esnaf-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #eee;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.25s;
  position: relative;
}

.esnaf-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.esnaf-card.premium-card {
  border: 2.5px solid var(--premium-altin);
  background: linear-gradient(135deg, #fffef0 0%, #fff9e6 100%);
  box-shadow: 0 4px 20px rgba(246,201,14,0.2);
}

.esnaf-card.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--premium-altin), var(--turuncu));
  border-radius: 14px 14px 0 0;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--premium-altin), var(--turuncu));
  color: #7a5200;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

/* Eczane Kartı */
.eczane-card {
  background: #fff;
  border-radius: 14px;
  border-left: 4px solid var(--yesil);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Noter Kartı */
.noter-card {
  background: #fff;
  border-radius: 14px;
  border-left: 4px solid var(--mavi);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Call/WhatsApp butonları */
.btn-ara {
  background: var(--kirmizi);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-ara:hover { background: var(--kirmizi-koyu); color: white; transform: scale(1.03); }

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-whatsapp:hover { background: #128c7e; color: white; transform: scale(1.03); }

.btn-harita {
  background: #fff;
  color: #4285f4;
  border: 2px solid #4285f4;
  border-radius: 50px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.btn-harita:hover { background: #4285f4; color: white; }

/* Filtre sidebar */
.filter-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1.5px solid #eee;
  position: sticky;
  top: 16px;
}

/* Sonuç header */
.result-header {
  background: linear-gradient(135deg, var(--kirmizi) 0%, var(--kirmizi-koyu) 100%);
  color: white;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

/* ─── ESNAF KAYIT FORMU ──────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.package-card {
  border: 2.5px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.package-card:hover,
.package-card.selected {
  border-color: var(--kirmizi);
  background: #fff5f5;
}

.package-card.premium-pkg {
  border-color: var(--premium-altin);
  background: linear-gradient(135deg, #fffef0, #fff9e6);
  position: relative;
}

.package-card.premium-pkg.selected {
  border-color: var(--turuncu);
  box-shadow: 0 8px 24px rgba(246,201,14,0.3);
}

.pkg-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--kirmizi);
}

/* ─── ADMİN ──────────────────────────────────────────────────── */
.admin-sidebar {
  background: #1a1a2e;
  min-height: 100vh;
  color: white;
  width: 250px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
}

.admin-main {
  margin-left: 250px;
  min-height: 100vh;
  background: #f5f6fa;
}

@media (max-width: 768px) {
  .admin-sidebar { width: 100%; min-height: auto; position: relative; }
  .admin-main { margin-left: 0; }
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255,255,255,0.07);
  color: white;
  border-left-color: var(--kirmizi);
}

.admin-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border-left: 4px solid;
}

/* ─── PAGINATION ──────────────────────────────────────────────── */
.pagination .page-link {
  border-radius: 8px !important;
  margin: 0 2px;
  border: 1.5px solid #eee;
  color: var(--yazi);
}
.pagination .page-item.active .page-link {
  background: var(--kirmizi);
  border-color: var(--kirmizi);
}

/* ─── RESPONSIVE FİXES ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .search-card { padding: 16px; border-radius: 14px; }
  .pricing-card { padding: 24px 16px; }
  .form-card { padding: 20px 16px; }
  .hero-section { padding-bottom: 24px !important; }
  .stats-bar { gap: 4px; padding: 12px; }
  .stat-item { padding: 6px 8px; }
  .stat-item strong { font-size: 1.1rem; }
}

/* ─── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb-section {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.breadcrumb { margin: 0; font-size: 0.85rem; }

/* ─── LOADING SPINNER ─────────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

/* ─── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state i { font-size: 4rem; color: #ddd; margin-bottom: 16px; }

/* ─── ALERT BANNER ────────────────────────────────────────────── */
.alert-nobetci {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1.5px solid #a5d6a7;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.9rem;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--kirmizi); }