/* Dynamic weather themes with high-contrast frosted glass cards */
body {
  min-height: 100vh;
  color: #f8fafc;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
  transition: background 0.6s ease;
}

body.theme-clear-day {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 48%, #0369a1 78%, #0c4a6e 100%);
}

body.theme-clear-night {
  background: linear-gradient(135deg, #090d1f 0%, #1e1b4b 50%, #0f172a 100%);
}

body.theme-partly-cloudy-day {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 45%, #334155 100%);
}

body.theme-cloudy {
  background: linear-gradient(135deg, #475569 0%, #334155 55%, #1e293b 100%);
}

body.theme-rain {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 55%, #0f172a 100%);
}

body.theme-storm {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #0f172a 100%);
}

body.theme-snow {
  background: linear-gradient(135deg, #38bdf8 0%, #64748b 52%, #334155 100%);
}

body.theme-fog {
  background: linear-gradient(135deg, #64748b 0%, #475569 55%, #1e293b 100%);
}

.glass-card {
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

/* Custom horizontal scrollbar for hourly strip */
.hourly-scroll::-webkit-scrollbar {
  height: 6px;
}

.hourly-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
}

.hourly-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

@keyframes shimmer {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.45;
  }
}

.skeleton-pulse {
  animation: shimmer 1.4s ease-in-out infinite;
}

.autocomplete-dropdown {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.suggestion-item:hover,
.suggestion-item.suggestion-active {
  background: rgba(255, 255, 255, 0.16);
}
