/* 優惠快報（發發情報局 > 優惠快報）
   獨立檔案，不經過 SCSS 編譯；日夜間切換靠 body.theme-light（見 index.js handColorDaytime） */

.promoBox {
  width: 100%;
  padding-bottom: 10px;
}

/* 子標籤 */
.promo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.promo-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  border-radius: 999px;
  border: solid 1px #8ed4ff;
  background: transparent;
  color: #E2E2E2;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, color 0.2s;
}

.promo-tab:hover {
  background: rgba(142, 212, 255, 0.15);
}

.promo-tab.active {
  background: linear-gradient(0deg, #8ed4ff 0%, #bf6ece 100%);
  border-color: white;
  color: white;
}

.promo-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  text-shadow: none;
}

/* 優惠卡片 */
.promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.promo-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: solid 1px rgba(142, 212, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #E2E2E2;
}

.promo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.catgory-lists .list-content .promo-site,
.promo-site {
  font-size: 16px !important;
  font-weight: bold;
  color: #8ed4ff !important;
  text-decoration: none;
  padding: 0;
  border-bottom: solid 1px transparent;
}

.catgory-lists .list-content a.promo-site:hover {
  border-bottom: dashed 1px #8ed4ff;
}

.promo-tag {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 4px;
  background: linear-gradient(0deg, #8ed4ff 0%, #bf6ece 100%);
  color: white;
  font-size: 12px;
}

.promo-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: bold;
  color: #f4c4ff;
}

.promo-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.promo-period {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.7;
}

.promo-empty {
  grid-column: 1 / -1;
  margin: 20px 0;
  text-align: center;
  color: #E2E2E2;
  opacity: 0.8;
}

/* 日間模式 */
.theme-light .promo-tab {
  color: #5e5e5e;
  text-shadow: none;
  border-color: #379edf;
}

.theme-light .promo-tab.active {
  color: white;
}

.theme-light .promo-count {
  background: rgba(0, 0, 0, 0.12);
}

.theme-light .promo-card {
  background: #ffffff;
  border-color: #e0dddd;
  color: #5e5e5e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-light .catgory-lists .list-content .promo-site,
.theme-light .promo-site {
  color: #379edf !important;
}

.theme-light .promo-title {
  color: #a24fb3;
}

.theme-light .promo-empty {
  color: #5e5e5e;
}

/* 手機版：原本 .category 固定 600px，多一個標籤後改成依內容撐開 */
@media screen and (max-width: 1200px) {
  .catgory-lists .category {
    width: max-content !important;
    min-width: 600px;
  }

  .promoBox {
    width: calc(100vw - 30px);
  }

  .promo-tab {
    font-size: 14px;
    padding: 3px 12px;
  }

  .promo-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
}
