/* =========================================================================
   PDS Hub: Ukraine City Rankings & Municipal Resilience Portal (CSS)
   Colors: #0d3b66 (Navy), #1e40af (Deep Blue), #facc15 (Yellow), #f8fafc (Bg)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
  --color-primary: #0d3b66;
  --color-primary-dark: #07223d;
  --color-secondary: #1e40af;
  --color-accent: #facc15;
  --color-accent-hover: #eab308;
  --color-danger: #dc2626;
  --color-warning: #ea580c;
  --color-success: #16a34a;
  --color-bg: #f8fafc;
  --color-card-bg: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-heading {
  font-family: 'Montserrat', 'Inter', sans-serif;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pulse badge */
.pulse-badge {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Transitions */
.view-section {
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.view-section.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(6px);
}

.view-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}
