/* ==========================================================
   dist.css - 역대 회차 통계 분포 (15대 조건) 전용 스타일시트
   (HTML 인라인 CSS 전면 분리 및 반응형 최적화)
   ========================================================== */

/* 통계 조건 드롭다운 선택 바 */
.dist-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  flex-wrap: wrap;
}

.dist-filter-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #93C5FD;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dist-category-select {
  min-width: 220px;
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dist-category-select optgroup {
  background: #0F172A;
  color: #60A5FA;
  font-weight: 800;
  font-style: normal;
  padding: 6px 0 2px 0;
}

.dist-category-select option {
  background: #1E293B;
  color: #F8FAFC;
  font-weight: 600;
  padding: 6px 12px;
}

.dist-category-select:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.dist-category-desc {
  font-size: 12px;
  color: #94A3B8;
  margin-left: auto;
}

/* 통계 카드 계층형 그리드 (전체 영역 무조건 4등분 크기) */
.dist-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dist-card {
  background: rgba(22, 29, 47, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.dist-card.card-fullwidth {
  grid-column: 1 / -1;
}

.dist-card-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dist-card-title {
  color: #F1F5F9;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.dist-bar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 단일 통계 막대 행 */
.dist-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.dist-stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dist-stat-row.row-peak {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* 서브그룹 계층 그리드 (전체 영역 무조건 4등분 크기) */
.dist-subgroup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .dist-cards-grid,
  .dist-subgroup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dist-cards-grid,
  .dist-subgroup-grid {
    grid-template-columns: 1fr;
  }
}

.dist-subgroup-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.dist-subgroup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dist-subgroup-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.dist-subgroup-meta {
  font-size: 10.5px;
  color: #64748B;
}

.dist-subgroup-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
