.weather-intro {
  padding: 56px 0 8px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--lighter-background), var(--background) 70%);
}

.weather-intro h1 {
  color: var(--foreground);
  font-size: 2rem;
  margin-bottom: 8px;
}

.weather-intro .tagline {
  color: var(--light-foreground);
  font-size: 0.95rem;
}

.weather-panel {
  padding: 40px 0 80px;
}

.weather-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

#location-input {
  flex: 1;
  min-width: 0;
  background: var(--dark-background);
  color: var(--foreground);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
}

#location-input:focus {
  outline: none;
  border-color: var(--accent);
}

#search-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--dark-background);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#search-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

#search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.weather-status {
  max-width: 500px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--light-foreground);
  font-size: 0.9rem;
}

.weather-result {
  margin-top: 32px;
}

.location-name {
  text-align: center;
  color: var(--foreground);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.forecast-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.forecast-card {
  flex: 0 0 132px;
  background: var(--lighter-background);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.forecast-card:hover {
  border-color: var(--accent);
}

.forecast-card:active {
  transform: scale(0.97);
}

.forecast-card.is-today {
  border-color: var(--accent);
}

.forecast-card.is-selected {
  border-color: var(--accent);
  background: var(--dark-background);
  box-shadow: 0 0 0 1px var(--accent);
}

.forecast-day {
  color: var(--light-foreground);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.forecast-date {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.forecast-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.forecast-condition {
  color: var(--light-foreground);
  font-size: 0.75rem;
  line-height: 1.3;
  min-height: 2.4em;
  margin-bottom: 8px;
}

.forecast-temps {
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 700;
}

.forecast-temps .low {
  color: var(--light-foreground);
  font-weight: 400;
}

.forecast-precip {
  margin-top: 6px;
  color: var(--teal);
  font-size: 0.75rem;
}

.hourly-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--muted);
}

.hourly-title {
  color: var(--foreground);
  font-size: 1rem;
  margin-bottom: 14px;
}

.hourly-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.hourly-card {
  flex: 0 0 76px;
  background: var(--lighter-background);
  border: 1px solid var(--muted);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.hourly-time {
  color: var(--light-foreground);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hourly-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 6px;
}

.hourly-temp {
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 700;
}

.hourly-precip {
  margin-top: 4px;
  color: var(--teal);
  font-size: 0.68rem;
}

.weather-note {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.weather-note a {
  color: var(--muted);
}
