/* aqi-today.css — AQI Today Pages */

/* === HERO === */
.today-hero {
  padding: 36px 20px 28px;
  text-align: center;
  transition: background 0.5s;
  position: relative;
  overflow: hidden;
}
.today-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.today-aqi-num {
  font-size: clamp(72px, 22vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0,0,0,0.25);
}
.today-aqi-unit {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}
.today-aqi-label {
  display: inline-block;
  font-size: clamp(16px, 5vw, 26px);
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.2);
  border-radius: 40px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.today-aqi-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}
.today-updated {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
}

/* === LIFE ADVICE === */
.advice-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 12px;
}
.advice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .advice-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
}
.advice-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 6px 10px;
  text-align: center;
}
.advice-icon { font-size: 22px; line-height: 1; display: block; margin-bottom: 5px; }
.advice-name { font-size: 10px; color: var(--text2); margin-bottom: 5px; }
.advice-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.advice-badge.ok   { background: rgba(102,187,106,0.15); color: #66bb6a; }
.advice-badge.warn { background: rgba(255,167,38,0.15);  color: #ffa726; }
.advice-badge.bad  { background: rgba(239,83,80,0.15);   color: #ef5350; }

/* === RANKING (index page) === */
.ranking-outer {
  padding: 20px 20px 4px;
  max-width: 1100px;
  margin: 0 auto;
}
.ranking-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px 16px;
}
.ranking-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ranking-hd-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ranking-hd-link {
  font-size: 11px;
  color: var(--accent);
}
.ranking-list { display: flex; flex-direction: column; gap: 6px; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bg3);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.ranking-item:hover { background: var(--bg); }
.ranking-num { font-size: 12px; font-weight: 700; color: var(--text3); width: 18px; text-align: center; flex-shrink: 0; }
.ranking-city { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.ranking-aqi-val { font-size: 14px; font-weight: 800; }
.ranking-aqi-lbl { font-size: 10px; color: var(--text2); margin-left: 4px; }

/* === FAQ === */
.faq-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  margin-top: 20px;
}
.faq-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.faq-item { border-top: 1px solid var(--border); padding: 13px 0; }
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-q { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.faq-q::before { content: 'Q. '; }
.faq-a { font-size: 12px; color: var(--text2); line-height: 1.7; }

/* === OTHER REGIONS === */
.other-regions {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px;
  margin-top: 20px;
}
.other-regions-title { font-size: 12px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.other-regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 7px; }
.other-region-link {
  display: block;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.other-region-link:hover { border-color: var(--accent); color: var(--accent); }
