/* -----------------------------------------------------
   🌙✨ Ha-Bin Studio — style.css (완전 결계판 v2 복구본)
   2025.11.29 — 햇살결계 + 사이드바 안정판 + 푸터 안정판
----------------------------------------------------- */

/* 기본 세팅 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bgmain, #FFFDF8);
  color: #2b2b2b;

  /* ✔ 레이아웃 유지 — 절대 삭제 금지 */
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;    /* 가로만 막음 */
}

/* -------- 계절 입자 캔버스 -------- */
#season-canvas {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* -------- 모바일 헤더 -------- */
#mobile-header {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  background: #3558A8;
  color: #fff;
  z-index: 3000;
  align-items: center;
  padding: 0 14px;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
}

#drawer-btn {
  font-size: 24px;
  cursor: pointer;
}

/* -------- 사이드바 -------- */
#sidebar {
  width: 260px;
  background: #FFF4C9;
  border-right: 2px solid #3A67C9;
  padding: 10px;

  /* 사이드바 고정 높이 + 자기 스크롤 */
  height: 100vh;
  overflow-y: auto;
  z-index: 2000;
}

/* 사이드바 스크롤바 */
#sidebar::-webkit-scrollbar {
  width: 8px;
}
#sidebar::-webkit-scrollbar-track {
  background: #F3F3F3;
}
#sidebar::-webkit-scrollbar-thumb {
  background: #D5D5D5;
}

/* ----------------------------------------
   ⭐ Ha-Bin Studio — 사이드바 로고 최신 버전
---------------------------------------- */

.logo-block {
  text-align: center;
  margin: 0 auto 10px;
}

#main-logo {
  width: 210px;                 /* 최신 사이드바 로고 표준 크기 */
  height: auto;
  border-radius: 10px;
  border: 2px solid #FF8C00;    /* OFF 모드 기본 */
  box-sizing: border-box;
  padding: 10px;
  background: #FFF4C9;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* OFF 모드 */
.logo-off {
  border-color: #FF8C00 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

/* Moonlight 모드 */
.logo-moon {
  border-color: #3A67C9 !important;
  box-shadow: 0 0 12px rgba(92,142,219,0.55) !important;
}

/* Gold 모드 (관리자) */
.logo-gold {
  border-color: #DAA520 !important;
  box-shadow: 0 0 12px rgba(218,165,32,0.55) !important;
}

/* -------- 프로필 블록 -------- */
.poetic-block {
  width: calc(100% - 16px);
  margin: 0 auto 8px; 
  background: #A9DCFF;
  border: 1.5px solid rgba(53,88,168,0.25);
  padding: 10px 6px 10px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

.poetic-block h2 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.poetic-block p {
  font-size: 14.5px;
  line-height: 1.7;
}

/* -------- 대문 인장 -------- */
.badge {
  font-family: 'HCR Batang', serif;
  text-align: center;
  margin: 0 auto 10px;
  padding: 10px 16px;
  width: fit-content;
  background: #FFEBA0;
  border: 1.5px solid #3558A8;
  border-radius: 10px;
  line-height: 1.9;
  color: #5C8EDB;
  font-size: 13px;  
}

.badge .brand-bold {
  font-weight: 900;
  -webkit-text-stroke: 0.3px #3558A8;
  text-shadow: 0.6px 0.8px 1.5px rgba(53,88,168,0.35);
}

.badge .fl {
  color: #FF69B4;
  font-weight: 900;
}

/* -------- 날짜/시간 -------- */
#datetime-box {
  margin: 15px 0;
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

#current-datetime {
  font-weight: 600;
}

/* -------- 아날로그 시계 -------- */
#clock-box {
  display: flex;
  justify-content: center;
  margin: 15px 0 25px;
}

#clock {
  width: 85px;
  height: 85px;
  border: 2px solid #3A67C9;
  border-radius: 50%;
  position: relative;
}

.hand {
  width: 2px;
  height: 35%;
  background: #1B1E45;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: bottom;
}
/* 날짜/시간 — 전체 글자색 주황 */
#current-datetime {
  color: #FF8C00 !important;
}
/* 아날로그 시계 — 초침만 주황색 */
.hand.second {
  background: #FF0000 !important;
}
/* ----- 날씨 영역 ----- */
#weather-area {
  font-size: 13px;
  text-align: center;
  margin-top: 2px;
  color: #000;
}

#weather-location {
  font-weight: 600;
  color: #000;
}

#weather-box {
  font-weight: 600;
  color: #000;
}

/* -----------------------------------------------------
   🔐 관리자 모드 — 비밀의 문 스타일 (Secret Gate)
----------------------------------------------------- */

.secret-toggle {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  color: #C0C0C0;
  font-style: italic;
  text-align: center;
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 6px;
  transition: 0.25s ease;
}

.secret-toggle:hover {
  color: #5C8EDB;
}

.secret-box {
  display: none;
  width: 90%;
  margin: 10px auto 0;
  padding: 14px 12px;
  background: #F4FAFF;
  border: 1.5px solid #3558A8;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.secret-box input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid #A2C0E6;
  background: #ffffff;
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.secret-box input:focus {
  border-color: #5C8EDB;
  box-shadow: 0 0 4px rgba(92,142,219,0.4);
}

.secret-box button {
  width: 100%;
  padding: 8px 10px;
  background: #5C8EDB;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.secret-box button:hover {
  background: #3558A8;
}

#secret-msg {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* -------- 접이식 메뉴 -------- */
#menu-toggle {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  cursor: pointer;
  text-align: center;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
}

.menu-row a {
  width: 48%;
  padding: 4px 0;
  background: #FFF4C9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.menu-row a:hover {
  background: #F0F4FF;
  border-color: #3558A8;
  color: #3558A8;
}

/* -------- 메인 영역 -------- */
#content {
  flex: 1;
  width: calc(100vw - 260px);
  padding: 0  0  120px;  /* 아래 120px는 푸터 공간 */
  overflow-y: auto;
  position: relative;
  z-index: 100;
  min-height: 100vh;
}

/* -------- 탑메뉴 (PC 절대 1줄 + 버튼폭 균등화) -------- */
.top-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 30px;
  width: 100%;
  padding: 0 30px;  /* ⭐ 좌우 여백 추가 */ 
}

.top-menu a {
  flex: 0 0 10%;            /* 🔥 버튼폭 완전 동일화 */
  min-width: 0;

  padding: 10px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600; 
  text-decoration: none;
  color: #333;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  transition: 0.25s;
}

.top-menu a:hover {
  background: #EEF4FF;
  border-color: #3558A8;
  color: #3558A8;
}

/* -------- 모바일 -------- */
@media (max-width: 768px) {
  #mobile-header {
    display: flex;
  }

  #sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    transition: 0.3s;
  }

  #content {
    padding-top: 70px;
    width: 100%;
  }

  #habin-footer {
    left: 0;
    width: 100%;
  }
}

/* -------- 모바일 드로어 -------- */
#drawer {
  position: fixed;
  left: -70%;
  top: 0;
  width: 70%;
  height: 100%;
  background: #FFFDF8;
  z-index: 3500;
  transition: 0.3s;
  padding: 20px;
}

.drawer-inner a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #444;
  font-size: 15px;
}

/* --------------------------------------------------
   🌞 하빈 스튜디오 · 햇살결계 푸터 v3 (안정판)
-------------------------------------------------- */

#habin-footer {
  position: fixed;
  bottom: 0;
  left: 260px;   /* 사이드바 만큼 오른쪽으로 이동 */
  width: calc(100% - 260px);
  background: #1B1E45;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  padding: 6px 0 8px;
  z-index: 9999;
  font-family: 'HCR Batang','Batang',serif;
}

.footer-inner {
  line-height: 1.8;
}

.footer-line1,
.footer-line2 {
  margin: 2px 0;
}

/* 저작권 문구 */
.ft-sub {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 15px;
}

/* 골드 라인 */
.ft-star {
  color: #DAA520;
  font-weight: 700;
  font-size: 15px;
}

.footer-line2 em {
  font-style: italic;
}

/* 은회색 문장 */
.ft-hidden {
  color: #C0C0C0 !important;
  font-size: 15px !important;
  font-style: italic !important;
  margin-left: 6px;
  opacity: 0.9;
}
.top-banner {
  width: 100%;
  background: #26214F; /* 보라빛 네이비 추천 */
  color: #FFFFFF;
  height: 85px; /* ← 세로폭 넓힘 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'HCR Batang','Batang',serif;
  font-size: 25px;
  font-weight: 700;
  border-radius: 0;
  margin-bottom: 20px;
  padding: 0;           /* 여백 제거 → 푸터와 완전 동일한 느낌 */
  box-shadow: none;     /* 미세 그림자 제거 → 색 차이 방지 */
  border: none;         /* 테두리 제거 → 푸터와 동일 */
}
/* 🌈 무지개 파스텔 7색 + 골드 (탑메뉴 버튼 색상) */
.top-menu a:nth-child(1){
  background:#F8C4C4;  /* 레드 파스텔 */
  border-color:rgba(255,182,193,0.55);
}

.top-menu a:nth-child(2){
  background:#FFC871;  /* 오렌지 파스텔 */
  border-color:rgba(255,224,130,0.55);
}

.top-menu a:nth-child(3){
  background:#FFE08A;  /* 옐로우 파스텔 */
  border-color:rgba(144,238,144,0.55);
}

.top-menu a:nth-child(4){
  background:#A6FCA6;  /* 그린 파스텔 */
  border-color:rgba(92,142,219,0.55);
}

.top-menu a:nth-child(5){
  background:#C9E1FF;  /* 블루 파스텔 */
  border-color:rgba(186,160,255,0.55);
}

.top-menu a:nth-child(6){
  background:#A9BEEF;  /* 남색 파스텔 */
  border-color:rgba(135,206,235,0.55);
}

.top-menu a:nth-child(7){
  background:#D7C4FF;  /* 퍼플 파스텔 */
  border-color:rgba(210,180,80,0.75);
}

.top-menu a:nth-child(8){
  background:#F5D686;  /* 골드 파스텔 */
  border-color:rgba(250,240,230,0.7);
}



