/* ===== INDEX.CSS — Liquid Glass Araf Studio Edition ===== */
:root {
  --bg: #050a11;
  --bg2: #09131d;
  --accent: #2dd4c4;
  --red: #e84444;
  --orange: #f07030;
  --yellow: #e8c24a;
  --text: #dce8f0;
  --muted: #6a8a9e;
  --donate-bg: linear-gradient(135deg,#f06292,#d81b60);
  --header-h: 56px;
  --status-h: 36px;
  --font: 'Outfit',sans-serif;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html, body { 
  font-family:var(--font); 
  background:var(--bg); 
  color:var(--text); 
  font-size:14px; 
  overflow-x:hidden;
  min-height: 100vh;
}
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }

/* REUSABLE GLASS CLASSES */
.glass-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-inner-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* OVERLAY */
.overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:200; backdrop-filter:blur(4px); }
.overlay.active { display:block; }

/* SIDEBAR & LANG PANEL */
.sidebar, .lang-panel {
  position:fixed; top:0; height:100%; width:270px; background:rgba(9,19,29,0.95);
  backdrop-filter: var(--glass-blur); border:1px solid var(--glass-border);
  z-index:300; transition:transform .3s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column;
}
.sidebar { right:0; transform:translateX(100%); }
.sidebar.open { transform:translateX(0); }
.lang-panel { left:0; transform:translateX(-100%); width:240px; }
.lang-panel.open { transform:translateX(0); }

.sidebar-header, .lang-panel-header {
  display:flex; align-items:center; gap:10px; padding:18px 16px 14px;
  border-bottom:1px solid var(--glass-border); font-weight:600;
}
.sidebar-logo-img { width:32px; height:32px; border-radius:8px; object-fit:contain; }
.sidebar-title { flex:1; }
.nav-links, .lang-list { list-style:none; padding:12px 0; flex:1; }
.nav-links li a, .lang-item {
  display:flex; align-items:center; gap:12px; padding:12px 20px; font-size:14.5px;
  font-weight:500; color:var(--muted); transition:all .2s; cursor:pointer;
}
.nav-links li a:hover, .lang-item:hover, .nav-links li a.active, .lang-item.active-lang {
  color:var(--text); background:rgba(255,255,255,0.04);
}
.nav-links li a.active, .lang-item.active-lang { border-left:3px solid var(--accent); color:var(--accent); }
.lang-code { font-size:10px; background:rgba(255,255,255,0.1); padding:2px 6px; border-radius:4px; font-weight:700; color:var(--text); }
.sidebar-footer { padding:16px 20px; border-top:1px solid var(--glass-border); font-size:11px; color:var(--muted); }

/* HEADER */
.main-header {
  position:sticky; top:0; z-index:100; height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; padding:0 14px;
  border-bottom: 1px solid var(--glass-border);
}
.logo { display:flex; align-items:center; gap:9px; }
.logo-icon-svg { width:26px; height:26px; color:var(--accent); }
.logo-text { font-size:17px; font-weight:700; letter-spacing:-.3px; }
.header-right { display:flex; align-items:center; gap:6px; }
.donate-btn {
  display:flex; align-items:center; gap:6px; padding:7px 14px;
  background:var(--donate-bg); border-radius:20px; font-size:13px; font-weight:600; color:#fff;
}
.icon-btn { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:10px; color:var(--text); }
.icon-btn:hover { background:rgba(255,255,255,0.06); }
.hamburger-btn { flex-direction:column; gap:4px; }
.hamburger-btn span { display:block; width:19px; height:2px; background:var(--text); border-radius:2px; }

/* STATUS BAR */
.status-bar {
  height:var(--status-h); border-radius: 0 0 16px 16px; margin-bottom: 16px;
  display:flex; align-items:center; justify-content:space-between; padding:0 14px;
  font-size:12px; color:var(--muted); border-top: none;
}
.status-left, .status-alert { display:flex; align-items:center; gap:6px; }
.live-dot { width:8px; height:8px; background:var(--red); border-radius:50%; animation:pulseDot 2s infinite; display:inline-block; }
.death-count { color:var(--red); font-weight:600; }
@keyframes pulseDot { 0%{box-shadow:0 0 0 0 rgba(232,68,68,.7)} 70%{box-shadow:0 0 0 6px rgba(232,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(232,68,68,0)} }

/* MAIN CONTENT LAYOUT */
.home-scroll-container {
  padding: 0 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* LIQUID GLASS MAP PREVIEW */
.map-glass-container {
  position: relative;
  height: 360px; 
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#map { width:100%; height:100%; background: transparent; }
.map-overlay-click {
  position: absolute; inset:0; z-index:400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.1); transition: background 0.3s;
}
.map-glass-container:hover .map-overlay-click { background: rgba(0,0,0,0.02); }
.click-chip {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); padding: 10px 18px;
  border-radius: 30px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5); color: var(--text);
  margin-top: 250px;
}

.close-full-map {
  display: none; position: absolute; top: 16px; right: 16px; z-index: 10000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); width: 44px; height: 44px;
  border-radius: 50%; align-items: center; justify-content: center; color: #fff;
}

/* FULL SCREEN MAP STATE */
.map-glass-container.full-screen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  margin: 0; border-radius: 0; z-index: 9999; border: none;
}
.map-glass-container.full-screen .map-overlay-click { display: none; }
.map-glass-container.full-screen .close-full-map { display: flex; }

/* SECTIONS GENERAL */
.home-section { padding: 20px; border-radius: 20px; }
.section-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }

/* COUNTRIES SECTION (NEW) */
.country-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.country-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.country-item:hover { background: rgba(255, 255, 255, 0.05); }
.country-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.country-code {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text);
}
.country-name {
  font-weight: 600;
  font-size: 14px;
}
.country-count {
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.country-unlocated {
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--glass-border);
  background: transparent;
}

/* LAYERS PANEL */
.layer-active-card { background:rgba(232,68,68,.07); border:1px solid rgba(232,68,68,.2); border-radius:12px; padding:12px; margin-bottom: 14px; }
.layer-active-row { display:flex; align-items:center; gap:8px; margin-bottom:4px; font-size: 14px; }
.layer-pulse-dot { width:10px; height:10px; background:var(--red); border-radius:50%; animation:pulseDot 2s infinite; }
.layer-active-sub { font-size:11px; color:var(--muted); margin-bottom:10px; }
.legend-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; font-size:12px; }
.leg-circle { width:12px; height:12px; border-radius:50%; }
.leg-local { background:var(--red); }
.leg-imported { background:var(--orange); }
.leg-response { background:var(--yellow); }
.layers-section-label { font-size:10px; font-weight:700; letter-spacing:1px; margin: 12px 0 8px; }
.layer-toggle-row { display:flex; align-items:center; gap:12px; padding:10px 0; cursor:pointer; }
.layer-check-icon { width:20px; height:20px; border-radius:6px; border:2px solid; transition:all .2s; }
.yellow-check { border-color:var(--yellow); }
.yellow-check.checked { background:var(--yellow); }
.teal-check { border-color:var(--accent); }
.teal-check.checked { background:var(--accent); }

/* BOTTOM IMAGE */
.bottom-banner {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 10px;
}
.bottom-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* LEAFLET MAP & GLOWING MARKERS OVERRIDES */
.leaflet-popup-content-wrapper {
  background: rgba(15, 25, 35, 0.95) !important; backdrop-filter: blur(10px) !important;
  border:1px solid var(--glass-border) !important; border-radius:12px !important; color:var(--text) !important; padding:0 !important;
}
.leaflet-popup-tip { background: rgba(15, 25, 35, 0.95) !important; }
.custom-popup { padding:12px 14px; min-width:180px; }
.pp-case { padding:4px 0; }
.pp-id { font-size:13px; font-weight: 700; margin-bottom:6px; }
.pp-status { font-size:11px; font-weight:700; padding:4px 8px; border-radius:6px; display:inline-block; }

/* Custom Map Marker Wrap */
.custom-map-marker { display: flex; align-items: center; }
.marker-wrapper { display: flex; align-items: center; gap: 8px; }

.marker-label {
  color: #fff; font-weight: 600; font-size: 12px;
  background: rgba(0, 0, 0, 0.75); padding: 3px 8px;
  border-radius: 6px; border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px); white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: flex; gap: 6px; align-items: center;
}
.marker-label .badge { font-weight: 800; font-size: 13px; }

.pm {
  width:20px; height:20px; border-radius:50%; background:var(--c);
  animation:pulseMarker 2.2s ease-in-out infinite;
  display:flex; align-items:center; justify-content:center; position:relative;
  /* Premium Glow applied dynamically via JS inline style */
}
.pm::before { 
  content:''; position:absolute; inset:-6px; border-radius:50%; 
  background:color-mix(in srgb,var(--c) 30%,transparent); 
  animation:pulseRing 2.2s ease-in-out infinite; 
}
@keyframes pulseMarker { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
@keyframes pulseRing { 0%{transform:scale(1);opacity:.8} 100%{transform:scale(2.5);opacity:0} }

/* SHARE MODAL */
.share-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:10000; align-items:center; justify-content:center; padding:20px; }
.share-modal-box { padding:28px 24px; max-width:400px; width:100%; position:relative; }
.modal-close-btn { position:absolute; top:16px; right:16px; }
.share-modal-box h3 { font-size:18px; margin-bottom:10px; }
.share-link-box { background:rgba(0,0,0,0.3); border:1px solid var(--glass-border); border-radius:8px; padding:12px; font-size:14px; color:var(--accent); font-weight:600; margin:16px 0; text-align:center; }
.sp-copy { background:rgba(255,255,255,.1); width: 100%; justify-content: center; padding: 12px; border-radius: 8px; font-weight: 600; display: flex; align-items: center; gap: 8px;}
