/* =========================================================
   首頁天氣卡：最終整合版
   對應 .weather-bar.weather-card-next
   ========================================================= */

.weather-bar.weather-card-next {
  --weather-mint: #89f3d4;
  width: min(92vw, 760px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 18px auto !important;
  padding: 18px !important;
  display: block !important;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(105, 235, 211, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(25, 100, 128, 0.92), rgba(15, 62, 82, 0.94)) !important;
  border: 1px solid rgba(224, 255, 249, 0.25) !important;
  border-radius: 20px !important;
  box-shadow:
    0 18px 38px rgba(2, 24, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  transform: none !important;
}

.weather-bar.weather-card-next::before,
.weather-bar.weather-card-next::after {
  display: none !important;
}

/* 清除 marquee.css 舊版天氣排版影響 */
.weather-bar.weather-card-next .weather-top,
.weather-bar.weather-card-next .weather-center,
.weather-bar.weather-card-next .weather-insight-box,
.weather-bar.weather-card-next .weather-stats-box,
.weather-bar.weather-card-next .weather-right {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

/* 目前天氣＋溫度 */
.weather-bar.weather-card-next .weather-center {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.weather-bar.weather-card-next .weather-left-group {
  display: flex !important;
  align-items: center;
  gap: 11px;
}

.weather-bar.weather-card-next .weather-icon {
  width: 48px !important;
  font-size: 1.9rem !important;
  text-align: center;
}

.weather-bar.weather-card-next .weather-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
}

.weather-bar.weather-card-next .weather-desc {
  margin-top: 3px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.weather-bar.weather-card-next .temp-block {
  min-width: 112px !important;
  text-align: right;
}

.weather-bar.weather-card-next .temp-now {
  color: #b9fae6 !important;
  font-size: 2.8rem !important;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.weather-bar.weather-card-next .temp-feel {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
}

/* 行程提醒 */
.weather-bar.weather-card-next .weather-insight-box {
  display: flex !important;
  align-items: center !important;
  gap: 9px;
  margin: 12px 0 !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px !important;
}

.weather-bar.weather-card-next .weather-insight-box > i {
  color: var(--weather-mint);
  font-size: 0.9rem;
}

.weather-bar.weather-card-next .weather-forecast-text {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.74rem !important;
  font-weight: 750;
  line-height: 1.45;
}

/* 三張資訊卡 */
.weather-bar.weather-card-next .weather-stats-box {
  margin-top: 0 !important;
}

.weather-bar.weather-card-next .weather-right {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

/* 固定內容結構：
   第一列：圖標＋名稱
   第二列：數據 */
.weather-bar.weather-card-next .info {
  min-width: 0 !important;
  min-height: 68px !important;
  height: auto !important;
  padding: 9px 10px !important;
  display: grid !important;
  grid-template-columns: 19px minmax(0, 1fr) !important;
  grid-template-areas:
    "icon name"
    "value value" !important;
  row-gap: 5px !important;
  column-gap: 6px !important;
  align-content: center !important;
  justify-items: start !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.weather-bar.weather-card-next .info:hover {
  background: rgba(255, 255, 255, 0.19) !important;
  transform: translateY(-2px);
}

.weather-bar.weather-card-next .info i {
  grid-area: icon !important;
  align-self: center;
  margin: 0 !important;
  color: var(--weather-mint) !important;
  font-size: 0.88rem !important;
}

.weather-bar.weather-card-next .info small {
  grid-area: name !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.62rem !important;
  font-weight: 800;
  text-align: left !important;
  white-space: nowrap;
}

.weather-bar.weather-card-next .info span {
  grid-area: value !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 0.94rem !important;
  font-weight: 950;
  line-height: 1;
  text-align: left !important;
}

/* 查看完整天氣 */
.weather-bar.weather-card-next .weather-detail-link {
  display: flex !important;
  width: max-content !important;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0 auto !important;
  padding: 0 !important;
  color: #d9fff3;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 850;
}

.weather-bar.weather-card-next .weather-detail-link:hover {
  color: #fff;
}

/* 桌機 */
@media (min-width: 769px) {
  .weather-bar.weather-card-next {
    width: min(88vw, 760px) !important;
    margin: 20px auto !important;
    padding: 20px 22px !important;
  }

  .weather-bar.weather-card-next .weather-center {
    min-height: 66px !important;
  }

  .weather-bar.weather-card-next .weather-icon {
    width: 54px !important;
    font-size: 2.15rem !important;
  }

  .weather-bar.weather-card-next .temp-block {
    min-width: 126px !important;
  }

  .weather-bar.weather-card-next .temp-now {
    font-size: 3.1rem !important;
  }

  .weather-bar.weather-card-next .weather-insight-box {
    margin: 14px 0 12px !important;
    padding: 12px 14px !important;
  }

  .weather-bar.weather-card-next .weather-right {
    gap: 10px !important;
  }

  .weather-bar.weather-card-next .info {
    min-height: 70px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
  }

  .weather-bar.weather-card-next .info small {
    font-size: 0.68rem !important;
  }

  .weather-bar.weather-card-next .info span {
    font-size: 1rem !important;
  }
}

/* 手機 */
@media (max-width: 620px) {
  .weather-bar.weather-card-next {
    width: calc(100vw - 28px) !important;
    margin: 14px auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .weather-bar.weather-card-next .weather-center {
    min-height: 54px !important;
    gap: 10px !important;
  }

  .weather-bar.weather-card-next .weather-icon {
    width: 43px !important;
    font-size: 1.75rem !important;
  }

  .weather-bar.weather-card-next .temp-block {
    min-width: 96px !important;
  }

  .weather-bar.weather-card-next .temp-now {
    font-size: 2.45rem !important;
  }

  .weather-bar.weather-card-next .weather-insight-box {
    margin: 10px 0 !important;
    padding: 9px 10px !important;
  }

  .weather-bar.weather-card-next .weather-forecast-text {
    font-size: 0.7rem !important;
  }

  .weather-bar.weather-card-next .info {
    min-height: 66px !important;
    padding: 8px 9px !important;
  }

  .weather-bar.weather-card-next .weather-detail-link {
    margin-top: 9px !important;
  }
}
/* 桌機：左上固定天氣卡，三個數據卡等寬連續排列 */
@media (min-width: 1025px) {
  .weather-bar.weather-card-next {
    position: fixed !important;
    top: 54px !important;
    left: 14px !important;
    z-index: 30 !important;
    width: 400px !important;
    margin: 0 !important;
    padding: 18px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 22px !important;
    border-bottom-left-radius: 22px !important;
  }

  .weather-bar.weather-card-next .weather-right {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: initial !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .weather-bar.weather-card-next .weather-right .info {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
  }
}
