/* weather-pro.css — styles for the enhanced weather widget + header AQI chip */

.aqi-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.aqi-chip--good           { background: #2e9e4f; }
.aqi-chip--moderate       { background: #c7a930; }
.aqi-chip--sensitive      { background: #f2a33c; }
.aqi-chip--unhealthy      { background: #e2542e; }
.aqi-chip--very-unhealthy { background: #8c2a8c; }
.aqi-chip--hazardous      { background: #6b1224; }
.aqi-chip--na             { background: #999; }

.weather-pill { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.weather-pill__pin { color: #fff; }

.weather-widget__auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-size: 10.5px;
  color: var(--color-primary);
  margin-left: 6px;
}

.weather-widget__chip--auto {
  font-weight: 700;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

.weather-widget-v2 .weather-widget__sun {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 12.5px;
}
.weather-widget-v2 .weather-widget__sun strong {
  margin-left: 4px;
}

.weather-widget__tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.weather-widget__tabs button {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.weather-widget__tabs button.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.weather-widget__hint {
  font-size: 12px;
  color: var(--color-text-light);
  text-align: center;
  padding: 6px 0;
}

.weather-hourly-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.weather-hourly-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 8px 6px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 11.5px;
}
.weather-hourly-item strong { font-size: 13px; }
.weather-hourly-item small { color: var(--color-text-light); }

.weather-daily-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.weather-daily-item {
  display: grid;
  grid-template-columns: 64px 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--color-bg-alt);
}
.weather-daily-item:last-child { border-bottom: none; }
.weather-daily-item__label { font-weight: 600; }
.weather-daily-item__desc {
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weather-daily-item__temps strong { color: var(--color-text); }

.weather-widget__chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0;
  padding-bottom: 2px;
}
.weather-widget__chips button {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border, #e5e5e5);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
}
.weather-widget__chips button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.weather-widget.is-loading { opacity: 0.6; pointer-events: none; }

/* Toast notifications (shared component, styled here alongside other small UI) */
.fp-toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: 90vw;
}
.fp-toast {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.fp-toast.is-visible { opacity: 1; transform: translateY(0); }
.fp-toast--success { background: #1d6e3f; }
.fp-toast--error { background: #8c2a2a; }
