/* ==========================================================
   cooccur.css - 동반출현(궁합수) 순위 및 회차 검색 전용 스타일시트
   (HTML 인라인 CSS 전면 분리 및 반응형 최적화)
   ========================================================== */

/* 2동반수 / 3동반수 카운트 뱃지 */
.mode-pill-cnt {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  margin-left: 6px;
}

.gold-pill {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.blue-pill {
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* 검색 필터 바 박스 */
.cooccur-filter-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cooccur-search-guide-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #93C5FD;
}

.cooccur-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cooccur-input {
  flex: 1;
  min-width: 260px;
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.cooccur-sort-btn-group {
  padding: 2px;
  gap: 4px;
}

.btn-cooccur-sort {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-cooccur-search {
  padding: 10px 24px;
  cursor: pointer;
}

.cooccur-search-summary {
  margin-top: 10px;
  font-size: 13.5px;
  color: #FCD34D;
}

/* 결과 테이블 상단 바 */
.cooccur-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.cooccur-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-back-cooccur {
  padding: 5px 12px;
  font-size: 12.5px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid #3B82F6;
  color: #93C5FD;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-back-cooccur:hover {
  background: rgba(59, 130, 246, 0.25);
}

.cooccur-table-title {
  font-size: 15px;
  color: #F1F5F9;
  margin: 0;
}

.cooccur-table-subinfo {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}

/* 테이블 레이아웃 */
.cooccur-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.cooccur-table th,
.cooccur-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.col-rank { width: 12%; text-align: center !important; }
.col-combo { width: 30%; text-align: center !important; }
.col-count { width: 20%; text-align: center !important; }
.col-last { width: 23%; text-align: center !important; }
.col-inspect { width: 15%; text-align: center !important; }

.col-round-num { width: 15%; text-align: center !important; }
.col-round-balls { width: 45%; text-align: center !important; }
.col-round-th { width: 20%; text-align: center !important; }
.col-round-date { width: 20%; text-align: center !important; }

.cooccur-balls-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.cooccur-count-highlight {
  color: #F59E0B;
  font-size: 15px;
  font-weight: 800;
}

.btn-cooccur-inspect-round {
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid #3B82F6;
  color: #93C5FD;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cooccur-inspect-round:hover {
  background: rgba(59, 130, 246, 0.3);
}

/* 스크롤 로딩 인디케이터 */
.cooccur-loading-spinner {
  text-align: center;
  padding: 18px 0;
  color: #38BDF8;
  font-size: 14px;
  font-weight: 700;
}

.inline-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38BDF8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.carryover-hit {
  outline: 2px solid #FCD34D;
  box-shadow: none;
  transform: scale(1.05);
}
