/* ════════════════════════════════════════
   AQI – Air Quality Index Widget
   ════════════════════════════════════════ */

.aqi-no-key {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-secondary);
}

.aqi-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── City chips ── */
.aqi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.aqi-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}

.aqi-chip:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.aqi-chip.active {
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.35);
  color: var(--accent-blue);
}

/* ── Hero block ── */
.aqi-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aqi-hero-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.aqi-emoji  { font-size: 42px; line-height: 1; }
.aqi-number { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.aqi-label  { font-size: 14px; font-weight: 700; margin-top: 2px; }

.aqi-hero-right { flex: 1; min-width: 160px; }
.aqi-city       { font-size: 13px; font-weight: 600; margin-bottom: 10px; }

/* Scale bar */
.aqi-scale-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.aqi-scale-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.aqi-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.aqi-updated { font-size: 11px; color: var(--text-muted); }

/* ── Pollutant cards ── */
.aqi-poll-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.aqi-poll-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .aqi-poll-grid { grid-template-columns: repeat(3, 1fr); }
}

.aqi-poll-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}

.aqi-poll-name { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.aqi-poll-val  { font-size: 16px; font-weight: 700; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }
.aqi-poll-unit { font-size: 9px; color: var(--text-muted); margin-top: 2px; }

/* ── Advice box ── */
.aqi-advice {
  border: 1px solid;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Standard note ── */
.aqi-standard-note {
  font-size: 10px;
  color: var(--text-muted);
  margin: -8px 0 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ── City selector dropdown ── */
.aqi-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aqi-selector-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.aqi-city-dropdown {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s;
}

.aqi-city-dropdown:hover { border-color: rgba(96,165,250,0.4); }
.aqi-city-dropdown:focus { outline: none; border-color: var(--accent-blue); }

.aqi-city-dropdown option,
.aqi-city-dropdown optgroup {
  background-color: #0f1b2d;
  color: #e8f0fe;
}

.aqi-city-dropdown optgroup {
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-blue);
  letter-spacing: 0.04em;
}
