/* Air Quality Page Styles */

/* Page Header */
.page-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1d1d1f;
  letter-spacing: -0.015em;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #86868b;
  font-weight: 400;
}

/* AQI Overview Grid */
.aqi-overview {
  margin-bottom: 6rem;
}

.aqi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.aqi-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.aqi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.aqi-value {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.aqi-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.aqi-status {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aqi-time {
  font-size: 0.875rem;
  color: #86868b;
}

/* AQI Color Coding */
.aqi-good {
  border-left-color: #10b981;
}

.aqi-good .aqi-value {
  color: #10b981;
}

.aqi-good .aqi-status {
  color: #10b981;
}

.aqi-moderate {
  border-left-color: #f59e0b;
}

.aqi-moderate .aqi-value {
  color: #f59e0b;
}

.aqi-moderate .aqi-status {
  color: #f59e0b;
}

.aqi-unhealthy-sensitive {
  border-left-color: #ef4444;
}

.aqi-unhealthy-sensitive .aqi-value {
  color: #ef4444;
}

.aqi-unhealthy-sensitive .aqi-status {
  color: #ef4444;
}

.aqi-unhealthy {
  border-left-color: #dc2626;
}

.aqi-unhealthy .aqi-value {
  color: #dc2626;
}

.aqi-unhealthy .aqi-status {
  color: #dc2626;
}

/* Pollutants Section */
.pollutants {
  margin-bottom: 6rem;
}

.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pollutant-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.pollutant-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.pollutant-icon {
  display: inline-block;
  background: linear-gradient(135deg, #0071e3 0%, #00a8ff 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pollutant-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.pollutant-value {
  font-size: 2rem;
  font-weight: 600;
  color: #0071e3;
  margin-bottom: 0.5rem;
}

.pollutant-trend {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.trend-down {
  color: #10b981;
}

.trend-up {
  color: #ef4444;
}

.trend-stable {
  color: #86868b;
}

.pollutant-card p {
  color: #86868b;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* AQI Scale Section */
.aqi-scale-section {
  margin-bottom: 6rem;
}

.aqi-scale {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.scale-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  display: grid;
  grid-template-columns: 100px 150px 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 6px solid transparent;
}

.scale-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.scale-range {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.scale-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1d1d1f;
}

.scale-description {
  font-size: 0.9375rem;
  color: #86868b;
  line-height: 1.6;
}

/* Scale Color Coding */
.scale-good {
  border-left-color: #10b981;
}

.scale-good .scale-range {
  color: #10b981;
}

.scale-moderate {
  border-left-color: #f59e0b;
}

.scale-moderate .scale-range {
  color: #f59e0b;
}

.scale-unhealthy-sensitive {
  border-left-color: #f97316;
}

.scale-unhealthy-sensitive .scale-range {
  color: #f97316;
}

.scale-unhealthy {
  border-left-color: #ef4444;
}

.scale-unhealthy .scale-range {
  color: #ef4444;
}

/* Data Sources Section */
.data-sources {
  margin-bottom: 4rem;
}

.sources-content {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.sources-content p {
  color: #86868b;
  line-height: 1.8;
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.source-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: #fbfbfd;
  border-radius: 12px;
  border-left: 3px solid #0071e3;
}

.source-item strong {
  color: #1d1d1f;
  font-size: 1.0625rem;
  font-weight: 600;
}

.source-item span {
  color: #86868b;
  font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 3rem 1.5rem 2rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.0625rem;
  }

  .aqi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

  .scale-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sources-content {
    padding: 2rem 1.5rem;
  }
}
