@charset "utf-8";
/* ==========================================================================
   프로젝트 공용 커스텀 스타일 (B안 인덱스 레이아웃 전용)
   - 파일 경로 : /theme/현재테마/css/custom.css
   - head.sub.php 에서 add_stylesheet() 로 한번만 로드
   - 기존 theme.css / color.css 는 그대로 유지
   ========================================================================== */

/* ------------------------------
   1. 색상 / 타이포 기본값
   ------------------------------ */

:root {
  /* 다크 테마 베이스 */
  --bt-bg: #0f141a;
  --bt-surface: #151b23;
  --bt-surface-soft: #1c2430;
  --bt-surface-alt: #10141c;

  --bt-primary: #1f7ae0; /* 메인 포인트 블루 */
  --bt-accent: #ffb31f; /* 강조용 (뱃지/아이콘) */
  --bt-danger: #ff4b5c; /* 경고/위험 표시 */

  --bt-text: #e5e9f0;
  --bt-text-muted: #9ca3af;
  --bt-border-subtle: #27303d;

  --bt-radius-lg: 14px;
  --bt-radius-md: 10px;
  --bt-radius-sm: 6px;

  --bt-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --bt-shadow-card: 0 10px 26px rgba(0, 0, 0, 0.28);

  --bt-container-width: 1160px;
}

/* 전체 배경은 기존 테마에 맞춰 선택적으로 적용
   (필요 없으면 주석 처리) */
body.bt-dark {
  background-color: var(--bt-bg);
  color: var(--bt-text);
}

/* ------------------------------
   2. 인덱스 전용 레이아웃 기본
   ------------------------------ */

.bt-root {
  max-width: var(--bt-container-width);
  margin: 0 auto;
  padding: 24px 12px 40px;
}

.bt-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.35fr);
  gap: 24px;
  margin-top: 32px;
}

/* 메인/사이드 컬럼 */
.bt-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bt-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ------------------------------
   3. 히어로 영역
   ------------------------------ */

.bt-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.65fr);
  gap: 24px;
  padding: 22px 20px;
  border-radius: var(--bt-radius-lg);
  background: radial-gradient(
    circle at top left,
    #243b5a 0%,
    #111827 55%,
    #050814 100%
  );
  color: #f9fafb;
  box-shadow: var(--bt-shadow-soft);
}

.bt-hero__left,
.bt-hero__right {
  min-width: 0;
}

.bt-hero-main__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 10px;
}

.bt-hero-main__title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 12px;
}

.bt-hero-main__title span {
  color: var(--bt-accent);
}

.bt-hero-main__text {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.95);
  margin: 0 0 18px;
}

.bt-hero-main__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 우측 배너 */
.bt-hero-banner {
  border-radius: var(--bt-radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 14px;
  margin-bottom: 12px;
  min-height: 120px;
}

/* 메타 정보 */
.bt-hero-meta {
  border-radius: var(--bt-radius-md);
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  padding: 10px 12px;
}

.bt-hero-meta dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
}

.bt-hero-meta dt {
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
}

.bt-hero-meta dd {
  margin: 0;
  font-size: 11px;
  color: rgba(209, 213, 219, 0.8);
}

/* ------------------------------
   4. 버튼 / 링크 스타일
   ------------------------------ */

.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.08s ease;
  text-decoration: none !important;
}

.bt-btn--primary {
  background: var(--bt-primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.3),
    0 12px 26px rgba(15, 118, 255, 0.45);
}

.bt-btn--primary:hover {
  background: #1c64d8;
  transform: translateY(-1px);
}

.bt-btn--ghost {
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.bt-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* 링크형 "전체보기" */
.bt-link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bt-text-muted);
  text-decoration: none !important;
}

.bt-link-more i {
  font-size: 13px;
}

.bt-link-more:hover {
  color: #fff;
}

/* ------------------------------
   5. 섹션 기본 구조
   ------------------------------ */

.bt-section {
  padding: 16px 16px 18px;
  border-radius: var(--bt-radius-md);
  background: var(--bt-surface);
  border: 1px solid var(--bt-border-subtle);
  box-shadow: var(--bt-shadow-card);
}

.bt-section--primary {
  background: var(--bt-surface-soft);
}

.bt-section--last {
  margin-bottom: 8px;
}

.bt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bt-section-head__titles {
  min-width: 0;
}

.bt-section-head__title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 4px;
}

.bt-section-head__desc {
  margin: 0;
  font-size: 12px;
  color: var(--bt-text-muted);
}

/* ------------------------------
   6. 카드 그리드 / 리스트
   ------------------------------ */

.bt-card-grid {
  display: grid;
  gap: 14px;
}

/* 검증된 슬롯사이트: auto-fit 그리드 (위젯 rows에 맞게 자동 배치) */
.bt-card-grid--site {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* 분쟁/뉴스 등은 3열 */
.bt-card-grid--dispute,
.bt-card-grid--news {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 가로형 카드 줄 */
.bt-card-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

/* 블로그 카드 줄 전용 */
.bt-card-row--blog {
  gap: 16px;
}

/* 위젯에서 나오는 기본 .na- 카드들을 감싸는 용도 */
.bt-card-grid .na-item,
.bt-card-row .na-item {
  background: var(--bt-surface-alt);
  border-radius: var(--bt-radius-md);
  border: 1px solid rgba(55, 65, 81, 0.8);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.bt-card-grid .na-item:hover,
.bt-card-row .na-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--bt-primary);
}

/* 검증된 슬롯사이트 섹션 전용 — wr-list 썸네일/텍스트 정리 */
.bt-card-grid--site .na-latest,
.bt-card-grid--site .na-latest .na-item {
  display: block;
}

.bt-card-grid--site .na-item {
  background: transparent;
  border: 0;
  padding: 0;
}

.bt-card-grid--site .na-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}

/* ★ 썸네일 크기는 PHP 위젯 옵션(thumb_w / thumb_h)로 생성,
   CSS에서는 가로 100%만 맞추고 비율은 유지 */
.bt-card-grid--site .na-thumb img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.bt-card-grid--site .na-subject,
.bt-card-grid--site .na-subject a {
  display: block;
  font-size: 13px;
  color: #f9fafb;
}

.bt-card-grid--site .na-subject a:hover {
  color: #ffb31f;
}

/* 빈 데이터 안내 문구 */
.bt-empty {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--bt-text-muted);
}

/* ------------------------------
   7. 반응형 처리
   ------------------------------ */

@media (max-width: 1199px) {
  .bt-root {
    padding-top: 18px;
  }

  .bt-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1.6fr);
  }
}

@media (max-width: 991.98px) {
  .bt-root {
    padding: 16px 10px 28px;
  }

  .bt-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px;
  }

  .bt-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bt-aside {
    order: -1; /* 모바일에서 사이드를 위로 올리려면 -1, 아래로 두려면 기본값으로 변경 */
  }

  .bt-card-grid--site {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-card-grid--dispute,
  .bt-card-grid--news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .bt-root {
    padding-inline: 8px;
  }

  .bt-section {
    padding: 14px 12px 16px;
  }

  .bt-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .bt-section-head__title {
    font-size: 16px;
  }

  .bt-card-grid--site,
  .bt-card-grid--dispute,
  .bt-card-grid--news {
    grid-template-columns: minmax(0, 1fr);
  }

  .bt-card-row {
    padding-inline: 2px;
  }

  .bt-hero-main__title {
    font-size: 22px;
  }
}

/* ==========================================================================
   SLOT TIME 사이드바 (index 전용)
   ========================================================================== */

.st-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 기본 카드 박스 */
.st-side-card {
  background: var(--bt-surface, #151b23);
  border-radius: var(--bt-radius-md, 10px);
  border: 1px solid var(--bt-border-subtle, #27303d);
  padding: 14px 14px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

/* 프로필/로그인 카드 : 내부 스킨을 그대로 쓰되 여백만 조정 */
.st-side-card--outlogin {
  padding: 0;
  overflow: hidden;
}

.st-side-card--outlogin .outlogin,
.st-side-card--outlogin .na-outlogin {
  /* 나리야/그누 스킨 클래스에 맞게 넉넉한 여백만 부여 */
  padding: 16px 16px 18px;
}

/* 헤더 영역 */
.st-side-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.st-side-title {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0;
}

.st-side-more {
  font-size: 11px;
  color: var(--bt-text-muted, #9ca3af);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.st-side-more i {
  font-size: 12px;
}

.st-side-more:hover {
  color: #f9fafb;
}

/* 본문 영역 */
.st-side-body {
  font-size: 12px;
  color: var(--bt-text-muted, #9ca3af);
}

/* 위젯에서 오는 목록과 어울리도록 약간의 간격만 보정 */
.st-side-body .na-list,
.st-side-body .na-latest,
.st-side-body ul {
  margin-bottom: 0;
}

/* 공통 빈 상태 문구 */
.st-side-empty {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--bt-text-muted, #9ca3af);
}

/* 추천 영상 영역 */
.st-side-card--media {
  padding-bottom: 14px;
}

.st-side-media {
  margin-top: 4px;
}

.st-side-media-placeholder {
  border-radius: 10px;
  background: #020617;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 18px 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

.st-side-media-placeholder i {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--bt-primary, #1f7ae0);
}

/* 반응형 (태블릿/모바일에서 카드 여백 조정) */
@media (max-width: 991.98px) {
  .st-side-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 575.98px) {
  .st-side-card {
    padding-inline: 12px;
  }
}

/* ==========================================================================
   SLOT TIME 푸터 B안 (메인/사이드와 톤 통일)
   ========================================================================== */

:root {
  --hf-shell: 1160px;
  --hf-shell-pad: 16px;

  --hf-top-bg1: #0b1727;
  --hf-top-bg2: #050814;

  --hf-footer-bg: #020617;
  --hf-footer-border: rgba(148, 163, 184, 0.16);

  --hf-text: #e5e7eb;
  --hf-muted: #9ca3af;
  --hf-accent: #ffb31f;
}

/* 공통 컨테이너 정렬 */
.hf-shell,
#nt_footer .nt-container,
#nt_footer .nt-links > .nt-container {
  max-width: var(--hf-shell) !important;
  margin: 0 auto !important;
  padding: 0 var(--hf-shell-pad) !important;
  box-sizing: border-box;
}

/* ================== 상단 푸터 (검색 + 방문자 + 다단 메뉴) ================== */

#hf-foot-top {
  background: radial-gradient(
    circle at top left,
    var(--hf-top-bg1) 0%,
    var(--hf-top-bg2) 60%
  );
  color: var(--hf-text);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  padding: 26px 0 22px;
}

#hf-foot-top .grid {
  display: grid;
  grid-template-columns: 1.1fr 2.9fr;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 1199px) {
  #hf-foot-top .grid {
    grid-template-columns: 1fr;
  }
}

/* 검색/뉴스레터 카드 */
.hf-newsletter {
  background: radial-gradient(circle at top left, #1e3453 0%, #0b1423 70%);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-width: 520px;
}

.hf-newsletter .ttl {
  font-weight: 800;
  margin: 0 0 10px;
  font-size: 15px;
  color: #f9fafb;
}

.hf-newsletter form {
  display: flex;
  gap: 10px;
}

.hf-newsletter input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
}

.hf-newsletter input[type="search"]::placeholder {
  color: #6b7280;
}

.hf-newsletter button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 13px;
  background: var(--bt-accent, #ffb31f);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.hf-newsletter button:hover {
  background: #fbbf24;
}

.hf-newsletter small {
  display: block;
  margin-top: 9px;
  opacity: 0.9;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.85);
}

/* 방문자 카드 */
.hf-visit {
  margin-top: 14px;
  background: rgba(3, 7, 18, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 14px 14px 12px;
  color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.hf-visit-title {
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.9);
}

.hf-visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hf-visit .it {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.65);
  padding: 9px 10px 8px;
}

.hf-visit .lb {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 2px;
}

.hf-visit .val {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

/* 다단 메뉴 */
.hf-footcols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1199px) {
  .hf-footcols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hf-footcols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hf-footcol .head {
  font-weight: 800;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  font-size: 13px;
}

.hf-footcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-footcol li {
  padding: 7px 0;
  font-size: 13px;
}

.hf-footcol a {
  color: #cbd5f5;
  text-decoration: none;
}

.hf-footcol a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ================== 본 푸터 (정책 링크 + 카피라이트) ================== */

#nt_footer.hf-darkfoot {
  background: var(--hf-footer-bg);
  color: var(--hf-text);
  border-top: 1px solid rgba(15, 23, 42, 1);
}

#nt_footer .nt-links {
  border-bottom: 1px solid var(--hf-footer-border);
}

#nt_footer .nt-links ul > li::after {
  color: rgba(148, 163, 184, 0.4);
}

#nt_footer .nt-links ul > li > a {
  color: #cbd5f5 !important;
  text-decoration: none;
  font-size: 12px;
}

#nt_footer .nt-links ul > li > a:hover {
  color: #ffffff !important;
}

#nt_footer .px-3.pb-4 {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding-top: 16px;
  padding-bottom: 20px !important;
}

#nt_footer .copy {
  color: #d1e0ff;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12px;
}

#nt_footer .copy-sub {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--hf-muted);
}

#nt_footer .copy-year {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  color: #64748b;
}

#nt_footer i.fa-copyright {
  color: var(--hf-accent);
  margin-left: 2px;
}

/* 하단 정책 링크 영역 간격 조정 (모바일 포함) */
@media (max-width: 991px) {
  #nt_footer .nt-links ul > li {
    padding: 0 0.6rem;
  }
}

@media (max-width: 575.98px) {
  #hf-foot-top {
    padding: 22px 0 18px;
  }

  .hf-shell {
    padding-inline: 12px !important;
  }

  #nt_footer .px-3.pb-4 {
    padding-inline: 14px !important;
  }

  #nt_footer .copy,
  #nt_footer .copy-sub,
  #nt_footer .copy-year {
    font-size: 10px;
  }
}

/* ==========================================================================
   SLOT TIME — 사이드 로그인 카드 텍스트 강제 색상 변경
   ========================================================================== */

/* 사이드 로그인 카드 전체 텍스트를 밝게 통일 */
.st-side-card--outlogin,
.st-side-card--outlogin * {
  color: #f9fafb !important;
}

/* 닉네임/이름을 조금 더 강조 */
.st-side-card--outlogin strong,
.st-side-card--outlogin b {
  color: #f9fafb !important;
  font-weight: 700;
}

/* 보조 정보(레벨/직책 등)는 살짝만 톤 다운 */
.st-side-card--outlogin span,
.st-side-card--outlogin small {
  color: #e5e7eb !important;
}

/* ==========================================================================
   SLOT TIME — 신규 슬롯게임 섹션 가로 스크롤 제거
   ========================================================================== */

/* PC/태블릿에서는 스크롤 없이 카드만 보이도록 처리 */
@media (min-width: 768px) {
  .bt-card-row--scroll {
    overflow-x: visible !important; /* 가로 스크롤 영역 없애기 */
  }
}

/* 혹시 남는 브라우저 기본 스크롤바가 있어도 강제로 숨김 처리 */
.bt-card-row--scroll::-webkit-scrollbar {
  display: none;
}
.bt-card-row--scroll {
  -ms-overflow-style: none; /* IE / Edge */
  scrollbar-width: none; /* Firefox */
}
