/**
 * 봄맞이 테마: 다크 스프링 / 화이트 스프링
 * body.theme-dark-spring | body.theme-white-spring
 * 외곽선: 진한 금색 (#B8860B, #C9A227)
 */
body.theme-dark-spring,
body.theme-white-spring {
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ---- 토글 스위치 (공통) ---- */
.spring-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  padding: 4px 0;
}
.spring-theme-toggle .toggle-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  min-width: 88px;
  text-align: right;
}
.spring-theme-toggle .toggle-track {
  position: relative;
  width: 78px;
  height: 30px;
  border-radius: 999px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.spring-theme-toggle .toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.spring-theme-toggle .toggle-icon {
  position: relative;
  z-index: 2;
  font-size: 13px;
  opacity: 0.9;
}
#spring-theme-toggle[data-theme="dark"] .toggle-thumb { transform: translateX(0); }
#spring-theme-toggle[data-theme="light"] .toggle-thumb { transform: translateX(44px); }

/* ========== 1안: 다크 스프링 ========== */
body.theme-dark-spring {
  background-color: #1a1b26;
  color: #e2e8f0;
}
body.theme-dark-spring .sp-header {
  background: rgba(26, 27, 38, 0.96);
  border-bottom: 2px solid #C9A227;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}
body.theme-dark-spring .sp-logo { color: #ffd1dc; }
body.theme-dark-spring .sp-logo span { color: #ffd1dc; }
body.theme-dark-spring .sp-search { border: 2px solid #C9A227; }
body.theme-dark-spring .sp-search input { background: #24283b; color: #e2e8f0; }
body.theme-dark-spring .sp-search button { background: linear-gradient(135deg, #4fd1c5, #ffd1dc); color: #1a1b26; }
body.theme-dark-spring .sp-nav {
  background: linear-gradient(90deg, rgba(79, 209, 197, 0.35), rgba(255, 209, 220, 0.35));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
body.theme-dark-spring .sp-nav {
  animation: sp-nav-bg 28s ease-in-out infinite;
  background: transparent;
}
body.theme-dark-spring .sp-nav-inner li a { color: #fff; }
body.theme-dark-spring .sp-nav-inner li a:hover { background: rgba(255, 255, 255, 0.2); }
body.theme-dark-spring .spring-theme-toggle .toggle-label::after { content: "Dark Spring"; }
body.theme-dark-spring .spring-theme-toggle .toggle-track {
  background: linear-gradient(135deg, #111827, #1f2933);
  box-shadow: 0 0 0 2px #C9A227;
}
body.theme-dark-spring .spring-theme-toggle .toggle-thumb {
  background-color: #ffd1dc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
body.theme-dark-spring .sb-portal { color: #e2e8f0; }
body.theme-dark-spring .sb-section {
  border: 2px solid #C9A227;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  background: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
body.theme-dark-spring .sb-section-title {
  color: #0a0a0a !important;
  font-weight: 800;
  text-shadow: 0 0 1px #fff, 0 1px 2px rgba(255,255,255,0.9);
}
body.theme-dark-spring .sb-banner-slider {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #B8860B;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}
body.theme-dark-spring .sb-banner-placeholder { background: #24283b; color: #6b7280; border: 2px dashed #C9A227; }
body.theme-dark-spring .sb-btn-more { color: #4fd1c5; border: 2px solid #C9A227; }
body.theme-dark-spring .sb-btn-more:hover { background: rgba(79, 209, 197, 0.15); border-color: #C9A227; }
body.theme-dark-spring .sb-game-card {
  background: #24283b;
  border: 2px solid #C9A227;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}
body.theme-dark-spring .sb-game-card:hover { border-color: #FFD700; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85); }
body.theme-dark-spring .sb-game-card-title { color: #e2e8f0; }
body.theme-dark-spring footer {
  background: #1a1b26 !important;
  color: #9ca3af !important;
  border-top: 2px solid #C9A227 !important;
}

/* 다크모드에서도 게시판 목록은 PC처럼 흰 배경 + 진한 글씨 (모바일에서도 동일) */
body.theme-dark-spring .bo_list_layout .bo_list,
body.theme-dark-spring #bo_basic_list.bo_list,
body.theme-dark-spring .bo_list .list_table,
body.theme-dark-spring .bo_list .list_table thead th,
body.theme-dark-spring .bo_list .list_table tbody tr,
body.theme-dark-spring .bo_list .list_table tbody td,
body.theme-dark-spring .bo_list .list_table tfoot th,
body.theme-dark-spring .bo_list .list_table tfoot td {
  background: #fff !important;
  color: #333 !important;
}
body.theme-dark-spring .bo_list .list_table tbody tr:hover td {
  background: #f7f7f7 !important;
}
body.theme-dark-spring .bo_list .list_table .even td {
  background: #fbfbfb !important;
}
body.theme-dark-spring .bo_list .list_table .even tr:hover td {
  background: #f7f7f7 !important;
}
body.theme-dark-spring .bo_list .list_table .table_subject a,
body.theme-dark-spring .bo_list .list_table a {
  color: #1a1a1a !important;
}
body.theme-dark-spring .bo_list .list_table .table_subject a:hover {
  color: var(--primaryColor) !important;
}
body.theme-dark-spring .bo_list .list_table {
  border-color: #e5ecee !important;
}
body.theme-dark-spring .bo_list .list_table td,
body.theme-dark-spring .bo_list .list_table th {
  border-color: #e8e8e8 !important;
}
body.theme-dark-spring .bo_list .list_header .total {
  color: #555 !important;
}
@media (max-width: 1100px) {
  body.theme-dark-spring .bo_list .list_table tbody tr {
    background: #fff !important;
  }
  body.theme-dark-spring .bo_list .list_table tbody tr td {
    background: #fff !important;
    color: #333 !important;
  }
}

/* ========== 2안: 화이트 스프링 ========== */
body.theme-white-spring {
  background-color: #f8f9fa;
  color: #1f2937;
}
body.theme-white-spring .sp-header {
  background: #4fd1c5;
  border-bottom: 2px solid #B8860B;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
}
body.theme-white-spring .sp-logo { color: #1f2937; }
body.theme-white-spring .sp-logo span { color: #1f2937; }
body.theme-white-spring .sp-search { border: 2px solid #B8860B; }
body.theme-white-spring .sp-search input { background: #fff; color: #1f2937; }
body.theme-white-spring .sp-search button { background: linear-gradient(135deg, #ff8da1, #ffd1dc); color: #1f2937; }
body.theme-white-spring .sp-nav {
  animation: sp-nav-bg 28s ease-in-out infinite;
  background: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
body.theme-white-spring .sp-nav-inner li a { color: #1f2937; }
body.theme-white-spring .sp-nav-inner li a:hover { background: rgba(255, 255, 255, 0.35); }
body.theme-white-spring .spring-theme-toggle .toggle-label::after { content: "White Spring"; }
body.theme-white-spring .spring-theme-toggle .toggle-track {
  background: linear-gradient(135deg, #ecfeff, #ffe4ec);
  box-shadow: 0 0 0 2px #C9A227;
}
body.theme-white-spring .spring-theme-toggle .toggle-thumb {
  background-color: #ffffff;
  box-shadow: 0 2px 7px rgba(148, 163, 184, 0.9);
}
body.theme-white-spring .sb-portal { color: #1f2937; }
body.theme-white-spring .sb-section {
  border: 2px solid #C9A227;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(148, 163, 184, 0.25);
}
body.theme-white-spring .sb-section-title {
  color: #0a0a0a !important;
  font-weight: 800;
}
body.theme-white-spring .sb-banner-slider {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #B8860B;
  box-shadow: 0 12px 36px rgba(148, 163, 184, 0.3);
}
body.theme-white-spring .sb-banner-placeholder { background: #ffffff; color: #6b7280; border: 2px dashed #C9A227; }
body.theme-white-spring .sb-btn-more { color: #1f2937; border: 2px solid #C9A227; }
body.theme-white-spring .sb-btn-more:hover { background: rgba(79, 209, 197, 0.12); border-color: #B8860B; color: #1f2937; }
body.theme-white-spring .sb-game-card {
  background: #ffffff;
  border: 2px solid #C9A227;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.25);
}
body.theme-white-spring .sb-game-card:hover { border-color: #B8860B; box-shadow: 0 16px 44px rgba(148, 163, 184, 0.35); }
body.theme-white-spring .sb-game-card-title { color: #1f2937; }
body.theme-white-spring footer {
  background: #ffffff !important;
  color: #6b7280 !important;
  border-top: 2px solid #C9A227 !important;
}
