/* ============================================================================
   데일리 TOP10 — 과열기사·기자 랭킹 위젯 CSS v1.0
   ============================================================================ */

/* ─── 공통 컨테이너 ─── */
.dt-section {
  margin-bottom: var(--space-xl, 24px);
}
.dt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.dt-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dt-header-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.dt-header-icon.fire {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
}
.dt-header-icon.trophy {
  background: rgba(245,158,11,0.08);
  color: #f59e0b;
}
.dt-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.dt-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.dt-date-badge {
  font-size: 0.7rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── 탭 (기사/기자 전환) ─── */
.dt-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  padding: 3px;
}
.dt-tab {
  flex: 1;
  padding: 7px 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
}
.dt-tab:hover {
  color: var(--text-primary);
}
.dt-tab.active {
  background: var(--bg-elevated, #fff);
  color: var(--brand-600);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ─── 기사 카드 ─── */
.dt-card {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}
.dt-article-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  text-decoration: none;
  color: inherit;
}
.dt-article-row:last-child {
  border-bottom: none;
}
.dt-article-row:hover {
  background: var(--bg-tertiary, #f8fafc);
}
/* 순위 */
.dt-rank {
  width: 28px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.dt-rank.top { color: #ef4444; }
/* 기사 정보 */
.dt-article-info {
  flex: 1;
  min-width: 0;
}
.dt-article-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.dt-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.dt-media-tag {
  background: var(--brand-50, #f0f7ff);
  color: var(--brand-600, #0269c7);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.65rem;
}
.dt-journalist-tag {
  color: var(--text-secondary);
}
/* 과열 점수 */
.dt-heat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 42px;
}
.dt-heat-value {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.dt-heat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.dt-heat-high { color: #ef4444; }
.dt-heat-mid { color: #f59e0b; }
.dt-heat-low { color: #22c55e; }

/* ─── 기자 카드 ─── */
.dt-journalist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  text-decoration: none;
  color: inherit;
}
.dt-journalist-row:last-child {
  border-bottom: none;
}
.dt-journalist-row:hover {
  background: var(--bg-tertiary, #f8fafc);
}
.dt-journalist-info {
  flex: 1;
  min-width: 0;
}
.dt-journalist-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.dt-journalist-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.dt-journalist-stats {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.dt-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  gap: 1px;
}
.dt-stat-val {
  font-weight: 700;
  font-size: 0.85rem;
}
.dt-stat-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ─── 커버리지 바 ─── */
.dt-coverage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--bg-tertiary, #f8fafc);
  border-top: 1px solid var(--border-light, #f1f5f9);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.dt-coverage-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dt-coverage-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dt-coverage-dot.quick { background: #f59e0b; }
.dt-coverage-dot.precise { background: #ef4444; }

/* ─── 홈페이지용 컴팩트 모드 ─── */
.dt-compact .dt-article-row {
  padding: 8px 12px;
}
.dt-compact .dt-article-title {
  font-size: 0.78rem;
  -webkit-line-clamp: 1;
}
.dt-compact .dt-article-meta {
  display: none;
}

/* ─── 빈 상태 ─── */
.dt-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}
.dt-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.dt-empty-text {
  font-size: 0.85rem;
}

/* ─── 날짜 네비게이션 ─── */
.dt-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dt-date-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.dt-date-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.dt-date-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── 로딩 ─── */
.dt-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── 기자분석 페이지 내 DailyTop 간격 ─── */
.jr-daily-top-section {
  margin-bottom: 20px;
}
.jr-daily-top-section:empty {
  display: none;
}

/* ─── 반응형 ─── */
@media (max-width: 640px) {
  .dt-header { flex-wrap: wrap; }
  .dt-article-row { padding: 8px 10px; gap: 8px; }
  .dt-rank { width: 22px; font-size: 0.75rem; }
  .dt-article-title { font-size: 0.78rem; }
  .dt-heat-value { font-size: 0.85rem; }
  .dt-journalist-stats { gap: 6px; }
  .dt-stat-val { font-size: 0.78rem; }
  .dt-tabs { margin-bottom: 8px; }
  .dt-tab { padding: 6px 8px; font-size: 0.75rem; }
}

/* ─── 다크모드 ─── */
[data-theme="dark"] .dt-card {
  background: var(--bg-elevated);
  border-color: var(--border-default);
}
[data-theme="dark"] .dt-article-row:hover,
[data-theme="dark"] .dt-journalist-row:hover {
  background: var(--bg-tertiary);
}
[data-theme="dark"] .dt-media-tag {
  background: rgba(14,135,233,0.15);
  color: var(--brand-300);
}
[data-theme="dark"] .dt-tab.active {
  background: var(--bg-secondary);
  color: var(--brand-400);
}
[data-theme="dark"] .dt-coverage {
  background: var(--bg-secondary);
}
