/* hot_topics */
/* ===== Hot Topics Page ===== */
.hot-topics-header{padding:20px 20px 14px}
.hot-topics-title{margin:0;font-size:var(--font-size-xl);font-weight:700;color:var(--text);line-height:1.3}
.hot-topics-subtitle{margin:4px 0 0;font-size:var(--font-size-sm);color:var(--text-subtle)}

/* Control bar: tabs left, capsules right */
.hot-topics-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 16px;flex-wrap:wrap}

/* Time tabs */
.hot-topics-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;background:var(--bg);border:1px solid var(--line-soft);border-radius:10px}
.hot-topics-tab{padding:7px 16px;border-radius:7px;font-size:var(--font-size-sm);font-weight:600;color:var(--text-muted);text-decoration:none;transition:all .2s ease;white-space:nowrap}
.hot-topics-tab:hover{color:var(--brand)}
.hot-topics-tab.active{background:var(--brand);color:var(--inverse-text);box-shadow:var(--shadow-base)}

/* Metric capsules */
.hot-topics-capsules{display:inline-flex;align-items:center;gap:4px;padding:4px;background:var(--bg);border:1px solid var(--line-soft);border-radius:999px}
.hot-topics-capsule{padding:6px 18px;border-radius:999px;font-size:var(--font-size-sm);font-weight:600;color:var(--text-muted);text-decoration:none;transition:all .2s ease;white-space:nowrap}
.hot-topics-capsule:hover{color:var(--brand)}
.hot-topics-capsule.active{background:var(--brand-soft);color:var(--brand)}

/* Topic List */
.hot-topics-list{display:grid;gap:6px;padding:0 20px 20px}

/* Topic Item - heat level backgrounds */
.hot-topics-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid transparent;border-radius:10px;background:var(--bg);text-decoration:none;transition:all .2s ease}
.hot-topics-item:hover{background:var(--panel);border-color:var(--brand-soft);box-shadow:var(--shadow-medium)}
.hot-topics-item.hot-topics-heat-hot{background:linear-gradient(135deg,var(--bg),rgba(245,158,11,.04));border-color:transparent}
.hot-topics-item.hot-topics-heat-hot:hover{background:linear-gradient(135deg,var(--panel),rgba(245,158,11,.06));border-color:var(--brand-soft)}
.hot-topics-item.hot-topics-heat-normal{background:rgba(243,245,246,.26);border-color:transparent}
.hot-topics-item.hot-topics-heat-normal:hover{background:var(--panel);border-color:var(--brand-soft)}

/* Rank Badge */
.hot-topics-rank-badge{flex:0 0 30px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:var(--font-size-sm);font-weight:700;line-height:1;transition:all .2s ease}
.hot-topics-rank-badge.hot-topics-rank-1{background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;box-shadow:0 2px 8px rgba(245,158,11,.35)}
.hot-topics-rank-badge.hot-topics-rank-2{background:linear-gradient(135deg,#94a3b8,#64748b);color:#fff;box-shadow:0 2px 8px rgba(100,116,139,.25)}
.hot-topics-rank-badge.hot-topics-rank-3{background:linear-gradient(135deg,#d97706,#b45309);color:#fff;box-shadow:0 2px 8px rgba(180,83,9,.25)}
.hot-topics-rank-badge.hot-topics-rank-other{background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs)}

/* Item Body */
.hot-topics-item-body{min-width:0;flex:1}
.hot-topics-item-title{font-size:var(--font-size-md);font-weight:600;color:var(--text);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hot-topics-item:hover .hot-topics-item-title{color:var(--brand)}

/* Meta Row */
.hot-topics-item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.hot-topics-forum-badge{display:inline-flex;align-items:center;padding:1px 7px;border-radius:4px;background:var(--brand-soft);color:var(--brand);font-size:var(--font-size-xs);font-weight:500;line-height:1.6}
.hot-topics-time{color:var(--text-subtle);font-size:var(--font-size-xs);line-height:1.4}

/* Heat count badge on the right */
.hot-topics-count{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 12px;border-radius:8px;font-size:var(--font-size-sm);font-weight:700;white-space:nowrap;line-height:1;min-height:32px;transition:all .2s ease}
.hot-topics-heat-hot .hot-topics-count{background:rgba(245,158,11,.1);color:#f59e0b}
.hot-topics-heat-normal .hot-topics-count{background:var(--bg);color:var(--text-subtle)}

/* Empty State */
.hot-topics-empty{padding:40px 20px;text-align:center;color:var(--text-subtle);font-size:var(--font-size-sm)}

/* ===== Sidebar Card ===== */
.hot-topics-card .hot-topics-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hot-topics-card .hot-topics-card-more{color:var(--text-subtle);font-size:var(--font-size-xs);white-space:nowrap;text-decoration:none}
.hot-topics-card .hot-topics-card-more:hover{color:var(--brand)}
.hot-topics-card .hot-topics-card-list a{display:flex;align-items:center;gap:8px;padding:6px 0;min-width:0}
.hot-topics-card .hot-topics-card-list a:before{display:none}
.hot-topics-card .hot-topics-card-rank{flex:0 0 18px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;border-radius:5px;background:var(--line-soft);color:var(--text-muted);font-size:11px;font-weight:700;line-height:1}
.hot-topics-card .hot-topics-card-rank-top{background:var(--brand-soft);color:var(--brand)}
.hot-topics-card .hot-topics-card-content{flex:1;min-width:0;display:block}
.hot-topics-card .hot-topics-card-title{display:block;font-size:var(--font-size-sm);color:var(--text);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hot-topics-card .hot-topics-card-list a:hover .hot-topics-card-title{overflow:visible;text-overflow:clip;white-space:normal;word-break:break-all}
.hot-topics-card .hot-topics-card-list a:hover .hot-topics-card-stat{opacity:0}
.hot-topics-card .hot-topics-card-stat{flex:0 0 auto;color:var(--text-subtle);font-size:var(--font-size-xs);white-space:nowrap}
.hot-topics-card .hot-topics-card-empty{padding:9px 0;color:var(--text-subtle);font-size:var(--font-size-sm)}

/* Responsive */
@media(max-width:600px){
    .hot-topics-header{padding:14px 14px 12px}
    .hot-topics-title{font-size:var(--font-size-lg)}
    .hot-topics-control{padding:0 14px 12px;gap:8px}
    .hot-topics-tab{padding:6px 12px;font-size:12px}
    .hot-topics-capsule{padding:5px 14px;font-size:12px}
    .hot-topics-list{gap:5px;padding:0 10px 16px}
    .hot-topics-item{padding:10px 12px;gap:10px}
    .hot-topics-rank-badge{flex:0 0 26px;width:26px;height:26px;font-size:12px}
    .hot-topics-item-title{font-size:var(--font-size-sm)}
    .hot-topics-count{padding:5px 10px;font-size:12px;min-height:28px}
}