/* ================================================================
   NBA Hot Daily — 2026 Redesign
   Dark hardwood court aesthetic, clean cards, game-stat typography
   ================================================================ */

:root {
  --court: #0d0d0d;
  --wood: #1a1410;
  --card: #161616;
  --card-hover: #1e1e1e;
  --border: #2a2a2a;
  --border-light: #333;
  --text: #e4e4e4;
  --text-dim: #999;
  --text-muted: #666;
  --accent: #f04e23;
  --accent-glow: rgba(240, 78, 35, 0.15);
  --blue: #3b9cff;
  --blue-dim: rgba(59, 156, 255, 0.12);
  --green: #2ecc71;
  --red: #e74c3c;
  --heat: #98002e;
  --bucks: #00471b;
  --warriors: #1d428a;
  --lakers: #552583;
  --celtics: #007a33;
  --mavs: #0053bc;
  --nba-blue: #1d428a;
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--court);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   TOP NAV BAR
   ============================== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.topbar .logo {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 800;
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.topbar .logo .icon { font-size: 1.4rem; }
.topbar .logo .accent { color: var(--accent); }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}
.topbar nav a:hover, .topbar nav a.active { color: #fff; }
.topbar .date-badge {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.82rem; color: var(--text-dim);
  font-weight: 600;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  max-width: 1080px; margin: 0 auto;
  padding: 40px 24px 20px;
  text-align: center;
}
.hero .today-label {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 8px;
}
.hero h1 .dot { color: var(--accent); }
.hero .subtitle {
  font-size: 0.95rem; color: var(--text-dim);
  max-width: 560px; margin: 0 auto;
}
.hero .date-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 28px;
}
.hero .date-controls button {
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 18px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
}
.hero .date-controls button:hover { background: #2a2a2a; color: #fff; border-color: #444; }
.hero .date-controls button:disabled { opacity: 0.25; cursor: default; }
.hero .date-controls .current {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  min-width: 140px; text-align: center;
}

/* ==============================
   MAIN CONTENT
   ============================== */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px 60px; }

/* Topic Card */
.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.topic-card:hover { border-color: var(--border-light); }

/* Topic Header */
.topic-head {
  padding: 24px 28px 0;
}
.topic-head .rank-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  background: var(--accent-glow); color: var(--accent);
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 10px;
}
.topic-head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800; color: #fff;
  line-height: 1.35; margin-bottom: 12px;
}
.topic-head .summary {
  font-size: 0.92rem; color: var(--text-dim);
  line-height: 1.7;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Platform Tab Bar */
.platform-bar {
  display: flex; gap: 0;
  background: #111;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.platform-bar button {
  flex-shrink: 0;
  background: none; color: var(--text-muted);
  border: none; border-bottom: 3px solid transparent;
  padding: 14px 22px; cursor: pointer;
  font-size: 0.84rem; font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s;
  white-space: nowrap;
}
.platform-bar button:hover { color: #ccc; }
.platform-bar button.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Comments Panel */
.comments-panel { display: none; padding: 0; }
.comments-panel.active { display: block; }
.comment-item {
  display: flex; gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.comment-item:last-child { border-bottom: none; }
.comment-item:hover { background: rgba(255,255,255,0.015); }
.comment-item .rank {
  flex-shrink: 0; width: 28px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 900;
  color: var(--text-muted); text-align: center;
  padding-top: 2px;
}
.comment-item:nth-child(1) .rank { color: #f1c40f; }
.comment-item:nth-child(2) .rank { color: #bdc3c7; }
.comment-item:nth-child(3) .rank { color: #cd7f32; }
.comment-item .comment-body { flex: 1; min-width: 0; }
.comment-item .comment-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.comment-item .user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #222;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.comment-item .username {
  font-weight: 700; font-size: 0.88rem; color: #ddd;
}
.comment-item .badge {
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
}
.comment-item .comment-text {
  font-size: 0.93rem; line-height: 1.6; color: var(--text);
  word-break: break-word;
}
.comment-item .comment-stats-bar {
  display: flex; gap: 16px; margin-top: 8px;
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 500;
}
.comment-item .stats-up { color: var(--green); font-weight: 700; }
.comment-item .stats-reply { color: var(--blue); font-weight: 600; }

/* Translation toggle */
.translate-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 16px; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; font-family: var(--font-body);
  transition: all 0.2s;
  margin-left: 14px; vertical-align: middle;
}
.translate-toggle:hover { background: #2a2a2a; color: #fff; }
.translate-toggle.on { background: var(--blue-dim); color: var(--blue); border-color: var(--blue); }

/* Generate button */
.generate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 20px;
  padding: 8px 18px; cursor: pointer;
  font-size: 0.82rem; font-weight: 700; font-family: var(--font-body);
  transition: all 0.2s;
  margin-left: 14px; vertical-align: middle;
}
.generate-btn:hover { background: #ff6a3d; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240,78,35,0.3); }
.generate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Generate progress */
.generate-progress {
  margin-top: 18px; max-width: 520px; margin-left: auto; margin-right: auto;
  text-align: left;
}
.progress-bar {
  height: 4px; background: #222; border-radius: 2px;
  overflow: hidden; margin-bottom: 8px;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.progress-text {
  font-size: 0.82rem; color: var(--text-dim);
  margin-bottom: 6px;
}
.progress-steps { font-size: 0.75rem; color: var(--text-muted); }
.step-item {
  padding: 2px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.translate-text {
  display: none; margin-top: 6px; padding: 8px 12px;
  background: rgba(59,156,255,0.06); border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0; font-size: 0.88rem; color: #9ecbff;
  line-height: 1.5; font-style: italic;
}
.translate-text.show { display: block; }
.translate-label { font-size: 0.7rem; color: var(--blue); font-weight: 700; margin-bottom: 2px; }
/* Hide translation on Chinese-heavy platforms */
.platform-bar button[data-platform="hupu"] .needs-translate,
.platform-bar button[data-platform="nba"] .needs-translate { display: none; }

/* Empty state */
.empty-state {
  text-align: center; padding: 32px 24px;
  color: var(--text-muted); font-size: 0.9rem;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  max-width: 1080px; margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted); font-size: 0.82rem;
  line-height: 1.8;
}
.site-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .platform-list {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin: 8px 0 4px;
}
.site-footer .platform-list span {
  font-size: 0.78rem; padding: 3px 10px;
  border-radius: 12px; background: #1a1a1a;
  border: 1px solid var(--border);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .topbar { padding: 0 14px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 0.8rem; }
  .hero { padding: 28px 16px 16px; }
  .hero h1 { font-size: 1.7rem; }
  .topic-head { padding: 18px 16px 0; }
  .topic-head h2 { font-size: 1.15rem; }
  .platform-bar button { padding: 12px 14px; font-size: 0.78rem; }
  .comment-item { padding: 14px 16px; gap: 10px; }
  .comment-item .rank { width: 22px; font-size: 0.95rem; }
  .comment-item .comment-text { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  .hero .date-controls button { padding: 8px 12px; font-size: 0.8rem; }
}
