/* ==========================================================================
   WEATHER HERO — .weather-hero (dải xanh đầu trang)
   Biến thể:
     (mặc định)             thời tiết hiện tại: icon + nhiệt độ | tiêu đề
     .weather-hero--center  chỉ tiêu đề căn giữa (Thế giới, Bộ icon)
   Bố cục 2 cột dùng .row + .col-12.col-md-6 (utilities.css)
   ========================================================================== */

.weather-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px) 0;
  background: linear-gradient(165deg, #2C6DB5 0%, #1D4F8E 55%, #173F73 100%);
  color: #fff;
}

.weather-hero a {
  color: rgba(255, 255, 255, 0.85);
}

.weather-hero__icon {
  width: 130px;
  height: 130px;
  flex: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.16));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.weather-hero__icon:hover {
  transform: scale(1.08);
}

.weather-hero__temp {
  font-size: clamp(54px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.weather-hero__condition {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
}

.weather-hero__feel {
  font-size: 15px;
  opacity: 0.85;
}

.weather-hero__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.weather-hero__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}

.weather-hero__meta {
  font-size: 15px;
  opacity: 0.9;
}

.weather-hero__flag {
  font-size: 54px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Biến thể căn giữa
   -------------------------------------------------------------------------- */

.weather-hero__content {
  max-width: 860px;
}

.weather-hero--center .weather-hero__title {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.weather-hero--center .weather-hero__desc {
  margin-bottom: 28px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

/* Dải nhãn nổi bật (trang Bộ icon) */
.weather-hero__badges {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

/* ==========================================================================
   BANNER PHÂN HỆ (front-page): thẻ "thời tiết hiện tại" + thẻ "3 ngày tới"
   ========================================================================== */

.weather-hero__flag-icon {
  font-size: 0.9em;
  line-height: 1;
}

/* Thẻ kính mờ trên nền xanh */
.weather-hero__card {
  height: 100%;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Weather now — thời tiết hiện tại của tỉnh/thành mặc định
   -------------------------------------------------------------------------- */

.weather-now__city {
  font-size: 18px;
  font-weight: 700;
}

.weather-now__city-sub {
  margin-left: 24px;
  font-size: 13px;
  opacity: 0.75;
}

.weather-now__pin {
  color: var(--color-accent);
}

.weather-hero a.weather-now__link {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.weather-hero a.weather-now__link:hover {
  background: rgba(255, 255, 255, 0.28);
}

.weather-now__icon {
  width: 110px;
  height: 110px;
  flex: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.weather-now__icon:hover {
  transform: scale(1.06);
}

.weather-now__temp {
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.weather-now__condition {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

.weather-now__feel {
  font-size: 14.5px;
  opacity: 0.85;
}

.weather-now__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 576px) {
  .weather-now__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.weather-now__stat-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.weather-now__stat-label {
  font-size: 12px;
  opacity: 0.75;
}

.weather-now__stat-value {
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Weather outlook — dự báo 3 ngày tới
   -------------------------------------------------------------------------- */

.weather-outlook__title {
  font-size: 18px;
  font-weight: 700;
}

.weather-outlook__day {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.weather-outlook__date {
  width: 92px;
}

.weather-outlook__day-name {
  font-size: 15px;
  font-weight: 700;
}

.weather-outlook__day-date {
  font-size: 12.5px;
  opacity: 0.7;
}

.weather-outlook__icon {
  width: 48px;
  height: 48px;
}

.weather-outlook__condition {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.weather-outlook__pop {
  font-size: 13px;
  font-weight: 600;
  color: #BFE3FF;
}

.weather-outlook__pop-icon {
  width: 22px;
  height: 22px;
  margin-right: -2px;
}

.weather-outlook__temp {
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.weather-outlook__max {
  font-size: 18px;
  font-weight: 700;
}

.weather-outlook__min {
  margin-left: 6px;
  font-size: 15px;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .weather-hero__card {
    padding: 18px;
  }

  .weather-now__icon {
    width: 72px;
    height: 72px;
  }

  .weather-outlook__date {
    width: 72px;
  }

  .weather-outlook__icon {
    width: 40px;
    height: 40px;
  }

  .weather-outlook__condition {
    display: none;
  }

  .weather-outlook__temp {
    margin-left: auto;
  }
}
