/* =========================================================
   React-City — Modern Dark UI Effects
========================================================= */

/* ── Nav icon buttons ── */
.nav-icon {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}
.nav-icon svg {
  height: 1.25rem;
  width: 1.25rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.nav-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.nav-icon:hover svg {
  opacity: 1;
}

/* ── Background grid ── */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── City card hover ── */
.city-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(96,165,250,0.15);
}

/* ── Stat cards ── */
.stat-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Neon cards (legacy compat) ── */
.neon-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.neon-card:hover {
  transform: scale(1.015);
  background: rgba(255, 255, 255, 0.06);
}

.neon-yellow:hover {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.65);
}
.neon-green:hover {
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.65);
}
.neon-red:hover {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.65);
}

.inner-ring {
  transition: border-color 0.3s ease;
}
.neon-yellow:hover .inner-ring { border-color: rgba(250, 204, 21, 0.45); }
.neon-green:hover .inner-ring  { border-color: rgba(34, 197, 94, 0.45); }
.neon-red:hover .inner-ring    { border-color: rgba(239, 68, 68, 0.45); }

/* ── Scrolling city strip animation ── */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-scroll {
  animation: scroll 30s linear infinite;
}
.animate-scroll:hover {
  animation-play-state: paused;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .neon-card, .inner-ring, .city-card, .stat-card {
    transition: none !important;
  }
  .neon-card:hover, .city-card:hover {
    transform: none !important;
  }
  .animate-scroll {
    animation: none !important;
  }
}
