/* BWB – Hot Topics: premium editorial widget (fire icon unchanged) */

/* ----- Widget frame: elevated module ----- */
.widget_bwb-hot-topics .bwb-ht-container,
.widget_bwb-hot_topics .bwb-ht-container {
  margin: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(26, 26, 28, 0.97) 0%, rgba(22, 22, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.2),
    0 10px 24px -4px rgba(0, 0, 0, 0.25);
}

/* ----- Title: editorial header ----- */
.widget_bwb-hot-topics .widget-title,
.widget_bwb-hot_topics .widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  padding: 0 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
}

.widget_bwb-hot-topics .widget-title::after,
.widget_bwb-hot_topics .widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.6), transparent);
  border-radius: 1px;
}

/* Fire icon – do not modify */
.bwb-ht-fire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
}

.bwb-ht-fire .fa-fire {
  display: block;
}

.bwb-ht-title-text {
  flex: 1;
}

/* ----- List: compact spacing ----- */
.bwb-ht-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bwb-ht-item {
  margin: 0;
}

/* ----- Card: premium list item ----- */
.bwb-ht-row {
  display: grid;
  grid-template-columns: 32px 80px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  overflow: hidden;
  position: relative;
}

.bwb-ht-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.35) 50%, transparent 100%);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bwb-ht-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 12px -2px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.bwb-ht-row:hover::before {
  opacity: 1;
}

/* ----- Rank: refined badge ----- */
.bwb-ht-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #272525;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
}

/* ----- Thumbnail: editorial image ----- */
.bwb-ht-thumbwrap {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  width: 80px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, border-color 0.2s ease, transform 0.25s ease;
}

.bwb-ht-row:hover .bwb-ht-thumbwrap {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.bwb-ht-thumb {
  display: block;
  width: 82px !important;
  height: 50px !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bwb-ht-row:hover .bwb-ht-thumb {
  transform: scale(1.05);
}

/* ----- Info block ----- */
.bwb-ht-info {
  min-width: 0;
}

.bwb-ht-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.bwb-ht-title {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.bwb-ht-title:hover {
  color: #fff;
  text-decoration: none;
}

/* ----- Tag: minimal label ----- */
.bwb-ht-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- Empty state ----- */
.bwb-ht-empty {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.5;
  padding: 14px 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* ----- Mobile: larger touch targets and text ----- */
@media (max-width: 480px) {
  .widget_bwb-hot-topics .bwb-ht-container,
  .widget_bwb-hot_topics .bwb-ht-container {
    padding: 14px 16px 18px;
    border-radius: 12px;
  }

  .widget_bwb-hot-topics .widget-title,
  .widget_bwb-hot_topics .widget-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 1.0625rem;
    gap: 10px;
  }

  .bwb-ht-fire {
    font-size: 1.35rem;
  }

  .bwb-ht-list {
    gap: 10px;
  }

  .bwb-ht-row {
    grid-template-columns: 36px 88px 1fr;
    gap: 12px;
    border-radius: 10px;
  }

  .bwb-ht-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .bwb-ht-thumbwrap {
    width: 88px;
    height: 54px;
    border-radius: 8px;
  }

  .bwb-ht-thumb {
    width: 88px !important;
    height: 54px !important;
  }

  .bwb-ht-title {
    font-size: 15px;
    line-height: 1.35;
  }

  .bwb-ht-tag {
    margin-top: 5px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .bwb-ht-empty {
    font-size: 15px;
    padding: 18px 0;
  }
}
