/* [HQ] /theme/Weblease-Simple_type-3/css/custom.css */
/* Version: v1.0.0 (Beta) */
/* Date: 2025-12-30 */
/* 고유식별코드: VS-CSS-MAIN-001 */
/* Author: Web-lease */
/* [변경 이력] */
/* - v1.0.0 : 무한슬롯 어드벤처 테마(Comic Style) 최초 정의 */
/* [기능 요약] */
/* 1. 코믹스 스타일 색상 변수 및 유틸리티 클래스 정의 */
/* 2. 메인 페이지 Hero 섹션 및 게시판 박스 스타일 */
/* 3. 헤더 및 GNB 오버라이딩 스타일 */

@import url("https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@400;700&display=swap");

/* --- 1. 전역 변수 설정 --- */
:root {
  --comic-bg: #f5deb3; /* 배경: 샌드 베이지 */
  --comic-yellow: #ffd700; /* 강조: 황금색 */
  --comic-brown: #3d2314; /* 테두리: 진한 갈색 */
  --comic-red: #ff4500; /* 포인트: 오렌지 레드 */
  --comic-border: 3px solid var(--comic-brown);
  --comic-shadow: 4px 4px 0px var(--comic-brown);
}

/* --- 2. 기본 레이아웃 재정의 --- */
body {
  background-color: var(--comic-bg) !important;
  /* 필요시 배경 패턴 이미지 추가: background-image: url('../img/pattern_map.png'); */
  font-family: "Noto Sans KR", sans-serif;
  color: var(--comic-brown);
}

/* 제목 폰트 교체 (주아체) */
h1,
h2,
h3,
h4,
h5,
h6,
.en,
.site-logo,
.nav-link,
.btn,
.font-comic {
  font-family: "Jua", sans-serif !important;
}

/* --- 3. 헤더 & 네비게이션 스타일 --- */
#nt_header .na-header,
#nt_sticky_wrap {
  background-color: #5d4037 !important; /* 나무색 헤더 */
  border-bottom: var(--comic-border);
}

#nt_lnb {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}
#nt_lnb a {
  color: #ffd700;
}

/* PC GNB 메뉴 */
#nt_menu .me-a {
  color: #fff !important;
  font-size: 1.2rem;
  text-shadow: 2px 2px 0 #000;
  transition: all 0.2s;
}
#nt_menu .me-a:hover {
  color: var(--comic-yellow) !important;
  transform: scale(1.1) rotate(-2deg);
}

/* --- 4. 코믹스 버튼 (Btn-Comic) --- */
.btn-comic {
  display: inline-block;
  background-color: var(--comic-yellow);
  color: var(--comic-brown) !important;
  border: 2px solid var(--comic-brown);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  margin-left: 5px;
  transition: all 0.1s;
  text-decoration: none;
}
.btn-comic:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
  background-color: #ffe066;
  color: var(--comic-brown) !important;
}
.btn-comic:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.btn-comic.point {
  background-color: var(--comic-red);
  color: #fff !important;
}

/* --- 5. 메인 Hero 섹션 (만화책 컷) --- */
.hero-comic-cut {
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  border: 4px solid #000;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.comic-speech-bubble {
  background: #fff;
  border: 3px solid #000;
  border-radius: 20px;
  padding: 15px 20px;
  color: #000;
  display: inline-block;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}
/* 말풍선 꼬리 */
.comic-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 40px;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: #000 transparent;
  display: block;
  width: 0;
}
.comic-speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 43px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: #fff transparent;
  display: block;
  width: 0;
  z-index: 1;
}

/* --- 6. 박스/위젯 스타일 --- */
.comic-box {
  background: #fff;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

/* --- 7. 상단 LNB (최상단 메뉴바) 리뉴얼 --- */
#nt_lnb {
  background-color: #3e2723 !important; /* 헤더보다 더 진한 고동색 배경 */
  border-bottom: 1px solid #2d1b12; /* 하단 경계선 */
  color: #efebe9 !important; /* 텍스트는 연한 베이지 */
  font-family: "Jua", sans-serif; /* 폰트 통일 */
  font-size: 0.95rem;
}

/* 링크 색상 */
#nt_lnb a {
  color: #fff !important; /* 기본 흰색 */
  text-decoration: none;
  transition: color 0.2s;
}

#nt_lnb a:hover {
  color: var(--comic-yellow) !important; /* 마우스 오버 시 황금색 */
}

/* 구분선(|) 색상 변경 */
#nt_lnb ul > li::after {
  color: #6d4c41 !important; /* 구분선도 부드러운 갈색으로 */
}

/* (옵션) 접속자 수 강조 */
#nt_lnb .orangered {
  color: #ff5722 !important;
  font-weight: bold;
}

/* --- 8. 메인 Hero 섹션 내 미니 슬롯 그리드 (3x3) --- */
.hero-slot-machine {
  background-color: rgba(0, 0, 0, 0.3); /* 배경을 살짝 어둡게 */
  border: 3px solid #3d2314; /* 진한 갈색 테두리 */
  border-radius: 15px;
  padding: 15px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); /* 안쪽으로 파인 느낌 */
  max-width: 450px; /* 너무 커지지 않게 제한 */
  margin-top: 20px;
}

/* 썸네일 이미지 스타일 */
.hero-slot-machine .img-wrap {
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.hero-slot-machine .img-wrap:hover {
  transform: scale(1.1); /* 마우스 올리면 확대 */
  border-color: var(--comic-yellow);
  z-index: 10;
}

/* 위젯 내부 텍스트 숨김 (이미지만 깔끔하게 보기 위해) */
.hero-slot-machine .na-title {
  display: none !important;
}

/* --- [수정] 9. GNB 메뉴 디자인 (한 줄 정렬 & 서브메뉴 끊김 해결) --- */

/* 1. 메뉴 줄바꿈 해결: 간격과 글자 크기 최적화 */
#nt_menu .me-ul {
  display: flex; /* 한 줄로 강제 정렬 */
  justify-content: center; /* 중앙 정렬 */
  flex-wrap: nowrap; /* 줄바꿈 금지 */
}

#nt_menu .me-a {
  background-color: #6d4c41;
  color: #ffd700 !important;
  font-family: "Jua", sans-serif;
  /* [수정 포인트] 사이즈 축소 */
  font-size: 1.05rem; /* 1.15rem -> 1.05rem (글자 크기 줄임) */
  padding: 10px 12px; /* 10px 20px -> 10px 12px (좌우 여백 줄임) */
  margin: 0 3px; /* 0 5px -> 0 3px (버튼 사이 간격 줄임) */
  border: 2px solid #3e2723;
  border-radius: 8px;
  box-shadow: 0 4px 0 #3e2723;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

/* 2. 서브메뉴 사라짐 해결: 간격 제거 및 안전장치 */
.nt-menu .sub-1div {
  /* [중요] 마우스가 지나갈 때 끊기지 않도록 간격 제거 */
  margin-top: 0px !important;

  /* 디자인 스타일 유지 */
  border: 3px solid #3e2723 !important;
  background-color: #fff8e1 !important;
  border-radius: 0 0 10px 10px; /* 위쪽은 직각, 아래쪽만 둥글게 */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3) !important;
  padding-top: 5px; /* 내부 여백으로 시각적 분리감 줌 */
}

/* 서브 메뉴 링크 스타일 */
.nt-menu .sub-1da {
  color: #5d4037 !important;
  font-family: "Jua", sans-serif;
  font-size: 1rem;
  border-bottom: 1px dashed #d7ccc8 !important;
  padding: 10px 15px; /* 터치 영역 확보 */
}

/* --- 10. '잭이 보증하는 보물' 섹션 (보물상자 스타일) --- */
.treasure-box-section {
  background-color: #fff8e1; /* 연한 황금빛(양피지) 배경 */
  border: 3px solid #3e2723; /* 진한 갈색 테두리 */
  border-radius: 15px; /* 둥근 모서리 */
  box-shadow: 8px 8px 0px rgba(62, 39, 35, 0.2); /* 입체 그림자 */
  padding: 25px 20px;
  position: relative;
  overflow: hidden;
}

/* 내부 장식 (옵션: 우측 하단에 보물 아이콘 배경) */
.treasure-box-section::before {
  content: "\f155"; /* 달러($) 아이콘 */
  font-family: "FontAwesome";
  position: absolute;
  bottom: -20px;
  right: 10px;
  font-size: 150px;
  color: rgba(0, 0, 0, 0.05); /* 아주 연하게 배경에 깔림 */
  transform: rotate(-15deg);
  z-index: 0;
}

/* 제목 스타일 강화 */
.treasure-title {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 0px #fff;
  margin-bottom: 20px !important;
  border-bottom: 2px dashed #8d6e63;
  padding-bottom: 10px;
}
