/* ========== 1. 중앙 정렬 및 컨테이너 설정 ========== */
/* 1320px 이상 데스크탑 */
@media (min-width: 1320px) {
  .postid-3128 #bitcoin-table-container-3128,
  .postid-3128 #bitcoin-stats-and-chart-3128,
  .postid-3128 .entry-content {
    width: 1280px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
  }
}

/* 1320px 미만 (모바일, 태블릿 포함) */
@media (max-width: 1319px) {
  .postid-3128 #bitcoin-table-container-3128,
  .postid-3128 #bitcoin-stats-and-chart-3128,
  .postid-3128 .entry-content {
    width: 100% !important; /* 모바일에서 100% 너비 사용 */
    max-width: unset !important; /* 최대 너비 제한 해제 */
    margin: 0 auto !important;
    box-sizing: border-box !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
  }
}

/* ========== 2. 기본 테이블 스타일 ========== */
#bitcoin-table-container-3128 {
  overflow-x: auto;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  background-color: #fff;
  padding: 10px;
  margin-bottom: 20px; /* 이 부분을 추가하여 아래 요소와의 간격을 띄웁니다 */
}

.bitcoin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}

.bitcoin-table thead th {
  background: #4a69bd;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  border-bottom: 2px solid #ccc;
  white-space: nowrap;
}

.bitcoin-table tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  white-space: nowrap;
}

.bitcoin-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.bitcoin-table tbody tr:hover {
  background-color: #e8f0ff;
}

.bitcoin-table td:nth-child(1) {
  font-weight: bold;
  color: #4a69bd;
}

.bitcoin-table td.positive, .stats-table td.positive {
  color: #e74c3c;
  font-weight: bold;
}
.bitcoin-table td.negative, .stats-table td.negative {
  color: #3498db;
  font-weight: bold;
}
.bitcoin-table td.na-data {
  color: #999;
  font-style: italic;
}

/* ========== 3. 통계 및 차트 섹션 스타일 ========== */
#bitcoin-stats-and-chart-3128 {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a69bd;
    padding-bottom: 10px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stats-box {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.stats-box-title {
    font-size: 16px;
    font-weight: bold;
    color: #4a69bd;
    margin-bottom: 15px;
    text-align: center;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.stats-table thead th {
    background: #5a82e7;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.stats-table tbody tr:nth-child(even) {
  background-color: #eef2fa;
}

.stats-table tbody td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.chart-container {
    width: 100%;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}
