:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --text: #0f172a;
  --muted: #5c6475;
  --accent: #0b6bcb;
  --accent-dark: #084f96;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.background-orb {
  display: none;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px 96px;
  position: relative;
  z-index: 1;
}

.glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
}

.hero {
  border-radius: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
}

h1 {
  margin: 12px 0 20px;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
}

.refresh-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent), #1d9bf0);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 116, 217, 0.24);
}

.refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 116, 217, 0.3);
}

.weather-panel {
  border-radius: 0;
  padding: 0;
  margin-bottom: 72px;
}

.weather-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 24px;
}

.weather-label {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.weather-updated {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 30px;
}

.weather-location-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.weather-location-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weather-location-title {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.weather-icon {
  color: var(--accent-dark);
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.weather-icon.is-sunny {
  color: #f57c00;
  background: transparent;
}

.weather-icon.is-partly-cloudy {
  color: #f6c443;
  background: transparent;
}

.weather-icon.is-cloudy {
  color: #7f8790;
  background: transparent;
}

.weather-icon.is-rainy {
  color: #1f78d1;
  background: transparent;
}

.weather-icon.is-snowy {
  color: #c7cdd4;
  background: transparent;
}

.weather-location-temp {
  margin: 10px 0 4px;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.weather-location-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.weather-location-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.webcam-section {
  margin-top: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  gap: 18px;
}

h2 {
  margin: 0;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: 1.55rem;
}

.material-symbols-rounded {
  font-variation-settings:
    'FILL' 1,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-button:hover {
  color: var(--accent-dark);
}

.filter-button.active {
  background: transparent;
  color: var(--accent);
}

.webcam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 44px 36px;
}

.webcam-card {
  border-radius: 0;
  overflow: visible;
  transform: translateY(6px);
  opacity: 0;
  animation: reveal 0.45s ease forwards;
}

.webcam-image-link {
  display: block;
}

.webcam-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: rgba(12, 34, 62, 0.08);
  border-radius: 16px;
}

.webcam-body {
  padding: 16px 0 0;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.source-pill {
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 0;
  padding: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webcam-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.webcam-actions {
  display: none;
}

.webcam-id {
  color: var(--muted);
  font-size: 0.85rem;
}

.webcam-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.webcam-link:hover {
  text-decoration: underline;
}

.error {
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  color: #9f1239;
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 34px 22px 64px;
  }

  .hero {
    margin-bottom: 48px;
  }

  .weather-panel {
    margin-bottom: 54px;
  }

  .weather-grid {
    gap: 24px;
  }

  .webcam-grid {
    gap: 32px 24px;
  }
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .refresh-button {
    width: 100%;
  }

  .weather-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .filter-bar {
    gap: 10px;
  }

  .webcam-grid {
    grid-template-columns: 1fr;
  }
}
