/* ================================================================
   Nöbetçi Eczane WordPress Plugin — Frontend Styles
   ================================================================ */

:root {
  --ne-primary:      #0a6e5e;
  --ne-primary-lt:   #14a085;
  --ne-accent:       #e8f5e9;
  --ne-accent2:      #f0faf8;
  --ne-red:          #e53935;
  --ne-orange:       #e65100;
  --ne-text:         #1a2b2a;
  --ne-muted:        #5a7370;
  --ne-border:       #c8e6c9;
  --ne-bg:           #f5faf9;
  --ne-white:        #ffffff;
  --ne-radius:       14px;
  --ne-shadow:       0 4px 24px rgba(10,110,94,.10);
  --ne-shadow-hover: 0 10px 36px rgba(10,110,94,.16);
}

/* ── Wrap ─────────────────────────────────────────────────────── */
.ne-wrap {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 900px;
  margin: 0 auto;
  color: var(--ne-text);
}

/* ── Header ───────────────────────────────────────────────────── */
.ne-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ne-border);
  flex-wrap: wrap;
}
.ne-header-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--ne-primary), var(--ne-primary-lt));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(10,110,94,.25);
}
.ne-title {
  margin: 0 !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--ne-text) !important;
  line-height: 1.2 !important;
}
.ne-subtitle {
  margin: 4px 0 0 !important;
  color: var(--ne-muted) !important;
  font-size: 0.9rem !important;
}
.ne-live-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff3e0;
  color: var(--ne-orange);
  border: 1.5px solid #ffcc80;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.ne-dot {
  width: 7px; height: 7px;
  background: var(--ne-orange);
  border-radius: 50%;
  display: inline-block;
  animation: ne-pulse 1.5s ease-in-out infinite;
}

/* ── Filters ──────────────────────────────────────────────────── */
.ne-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--ne-white);
  border: 1.5px solid var(--ne-border);
  border-radius: var(--ne-radius);
  padding: 20px 22px;
  box-shadow: var(--ne-shadow);
}
.ne-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}
.ne-filter-group label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ne-muted);
  letter-spacing: 0.3px;
}
.ne-select {
  border: 1.5px solid var(--ne-border) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: var(--ne-text) !important;
  background: var(--ne-bg) !important;
  outline: none !important;
  transition: border-color .2s !important;
  width: 100% !important;
  appearance: auto !important;
}
.ne-select:focus {
  border-color: var(--ne-primary-lt) !important;
  box-shadow: 0 0 0 3px rgba(20,160,133,.12) !important;
}
.ne-select:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.ne-btn-primary {
  background: linear-gradient(135deg, var(--ne-primary), var(--ne-primary-lt));
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px 26px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .2s !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(10,110,94,.3) !important;
  align-self: flex-end;
}
.ne-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(10,110,94,.35) !important;
}
.ne-btn-call {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ne-accent);
  color: var(--ne-primary) !important;
  border: 1.5px solid var(--ne-border) !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all .2s !important;
}
.ne-btn-call:hover {
  background: var(--ne-primary) !important;
  color: #fff !important;
  border-color: var(--ne-primary) !important;
}
.ne-btn-map {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e3f2fd;
  color: #1565c0 !important;
  border: 1.5px solid #90caf9 !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all .2s !important;
}
.ne-btn-map:hover {
  background: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !important;
}

/* ── Results area ─────────────────────────────────────────────── */
#ne-results {
  min-height: 120px;
}

/* ── Placeholder ──────────────────────────────────────────────── */
.ne-placeholder {
  text-align: center;
  padding: 48px 20px;
  background: var(--ne-white);
  border: 2px dashed var(--ne-border);
  border-radius: var(--ne-radius);
  color: var(--ne-muted);
}
.ne-placeholder-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* ── Result header ────────────────────────────────────────────── */
.ne-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap; gap: 8px;
}
.ne-result-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ne-text);
}
.ne-result-count {
  background: var(--ne-accent);
  color: var(--ne-primary);
  border: 1px solid var(--ne-border);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ── Pharmacy cards ───────────────────────────────────────────── */
.ne-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.ne-card {
  background: var(--ne-white);
  border: 1.5px solid var(--ne-border);
  border-radius: var(--ne-radius);
  padding: 20px 22px;
  box-shadow: var(--ne-shadow);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.ne-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--ne-primary), var(--ne-primary-lt));
  border-radius: 4px 0 0 4px;
}
.ne-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ne-shadow-hover);
  border-color: var(--ne-primary-lt);
}
.ne-card-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ne-text);
  margin-bottom: 8px;
}
.ne-card-district {
  display: inline-block;
  background: var(--ne-accent2);
  color: var(--ne-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid var(--ne-border);
  margin-bottom: 12px;
}
.ne-card-address {
  color: var(--ne-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
}
.ne-card-address::before { content: '📍'; position: absolute; left: 0; top: 0; font-size: 0.85rem; }
.ne-card-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ── Empty ─────────────────────────────────────────────────────── */
.ne-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--ne-white);
  border: 1.5px solid var(--ne-border);
  border-radius: var(--ne-radius);
  color: var(--ne-muted);
  font-size: 0.95rem;
}

/* ── Loading ──────────────────────────────────────────────────── */
.ne-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--ne-muted);
}
.ne-spinner {
  width: 42px; height: 42px;
  border: 4px solid var(--ne-border);
  border-top-color: var(--ne-primary);
  border-radius: 50%;
  animation: ne-spin .85s linear infinite;
  margin: 0 auto 14px;
}

/* ── Error ────────────────────────────────────────────────────── */
.ne-error {
  background: #fce4e4;
  border: 1.5px solid #ef9a9a;
  border-radius: var(--ne-radius);
  color: #c62828;
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── Updated note ─────────────────────────────────────────────── */
.ne-updated-note {
  text-align: center;
  color: var(--ne-muted);
  font-size: 0.78rem;
  margin-top: 20px !important;
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes ne-spin  { to { transform: rotate(360deg); } }
@keyframes ne-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}
@keyframes ne-fadeIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.ne-card { animation: ne-fadeIn .3s ease both; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ne-cards { grid-template-columns: 1fr; }
  .ne-filters { flex-direction: column; }
  .ne-btn-primary { width: 100%; text-align: center; }
  .ne-live-badge { margin-left: 0; }
}
