/* ==========================================================================
   BLOOMINGTON ONLINE WEATHER BOT v4.4.0
   Apple Weather-inspired Modern Dark Theme
   ========================================================================== */

.blo-weather {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

.blo-weather * {
  box-sizing: border-box;
}

/* 1. HEADER */
.blo-weather__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.blo-weather__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.blo-weather__badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f59e0b;
}

.blo-weather__source-tag {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.blo-weather__header-sub {
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blo-weather__location {
  font-weight: 700;
  color: #ffffff;
}

.blo-weather__dot {
  color: #64748b;
}

/* 2. MAIN CONDITIONS HERO */
.blo-weather__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.blo-weather__hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blo-weather__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.blo-weather__icon-fallback {
  font-size: 42px;
  line-height: 1;
}

.blo-weather__temp-block {
  display: flex;
  flex-direction: column;
}

.blo-weather__temp-val {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  color: #ffffff;
}

.blo-weather__temp-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-top: 4px;
}

.blo-weather__hero-right {
  text-align: right;
}

.blo-weather__condition {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.blo-weather__feels {
  font-size: 13px;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 6px;
}

.blo-weather__hilo {
  font-size: 13.5px;
  color: #cbd5e1;
}

.blo-weather__divider {
  margin: 0 6px;
  color: #475569;
}

/* 3. SUMMARY NARRATIVE */
.blo-weather__summary {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #f59e0b;
  border-radius: 8px 12px 12px 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.blo-weather__summary-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
}

/* 4. METRICS GRID */
.blo-weather__metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.blo-weather__metric-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blo-weather__metric-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.blo-weather__metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.blo-weather__metric-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.blo-weather__gust {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #38bdf8;
  margin-top: 2px;
}

/* 5. THREE-PERIOD OUTLOOK */
.blo-weather__outlook {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.blo-weather__outlook-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 0 0 12px 0;
}

.blo-weather__outlook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.blo-weather__outlook-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blo-weather__outlook-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.blo-weather__outlook-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 6px;
}

.blo-weather__outlook-temp {
  font-size: 16px;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 4px;
}

.blo-weather__outlook-cond {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.3;
}

/* 6. FOOTER */
.blo-weather__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 12px;
  color: #64748b;
}

.blo-weather__link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blo-weather__link:hover,
.blo-weather__link:focus-visible {
  color: #f59e0b;
  text-decoration: underline;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* ACCESSIBILITY & RESPONSIVE BREAKPOINTS */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .blo-weather {
    padding: 16px;
  }

  .blo-weather__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .blo-weather__hero-right {
    text-align: left;
  }

  .blo-weather__metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blo-weather__outlook-grid {
    grid-template-columns: 1fr;
  }

  .blo-weather__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blo-weather * {
    transition: none !important;
    animation: none !important;
  }
}
