/* WORLD NEWS MAP - STYLESHEET */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --color-econ: #10b981;
  --color-biz: #06b6d4;
  --color-pol: #8b5cf6;
  --color-sprt: #f59e0b;
  --color-food: #f43f5e;
  --color-all: #3b82f6;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  user-select: none;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Leaflet Map styling */
#map {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0d172a 0%, #060b14 100%);
}

.leaflet-container {
  background: radial-gradient(circle at 50% 50%, #0d172a 0%, #060b14 100%) !important;
  outline: none;
}

/* Smooth country polygons */
.leaflet-interactive {
  transition: fill-opacity 0.2s ease, stroke-width 0.2s ease, stroke 0.2s ease;
  cursor: pointer;
}

/* Capital Pulse Radar Pin */
.capital-marker-pin {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capital-dot {
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #38bdf8;
  z-index: 2;
}

.capital-pulse {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  animation: radar-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

@keyframes radar-ping {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Tooltip custom styling */
.country-tooltip {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.country-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.92) !important;
}

/* Glassmorphism utility classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.8);
}

/* Ticker Animation */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker-slide 75s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Audio wave animation */
.sound-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.sound-bar {
  width: 3px;
  background-color: #38bdf8;
  border-radius: 2px;
  animation: sound-bounce 1.2s ease-in-out infinite;
}

.sound-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.sound-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 16px; animation-delay: 0.4s; }
.sound-bar:nth-child(5) { height: 10px; animation-delay: 0.15s; }

@keyframes sound-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Slide in animation for news deck */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom modal backdrop */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(12px);
}
