/* --------------------------------------------------
   🧭 Ha-Bin Studio — sidebar.css
   2023.01.07. 사이드바 전용 스타일 (구조 고정)
-------------------------------------------------- */
/* ---- 사이드바 컨테이너 (자리) ---- */
#sidebar-container {
  width: 260px;
  flex-shrink: 0;
  display: flex; 
}

/*---- 사이드바 뼈대---- */
#sidebar {
  width: 260px;
  background: rgba(255, 232, 170, 0.92);
  backdrop-filter: blur(2px);
  border-right: 2px solid #3A67C9;
  padding: 10px;
  position: sticky;
  top: 0;
  flex: 1; 
  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; }

/*---- 로고 영역----*/
.logo-block { text-align: center; margin: 0 auto 40px; }
#main-logo {
  width: 210px;
  height: auto;  
  border-radius: 10px;
  border: 2px solid #FF8C00;
  box-sizing: border-box; 
  padding: 10px;
  background: #FFF4C9;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); 
}
.logo-off { border-color: #FF8C00 ; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) ; }
.logo-moon { border-color: #3A67C9 ;
  box-shadow: 0 0 12px rgba(92,142,219,0.55) ; }
.logo-gold { border-color: #DAA520 ; 
  box-shadow: 0 0 12px rgba(218,165,32,0.55) ; }

/* ----------------------------------------
   👤 프로필 블록 (Poetic Profile)
---------------------------------------- */
.poetic-block {
  width: calc(100% - 16px);
  margin: 0 auto 40px;
  background: #AFFFF5;
  border: 1.5px solid rgba(53,88,168,0.55);
  padding: 10px 6px 10px;
  border-radius: 14px;
  text-align: center;
  box-shadow:
    0 0 6px rgba(53,88,168,0.35),
    0 0 12px rgba(53,88,168,0.20);
  margin-bottom: 35px; 
  transition: 0.25s ease;
}
.poetic-block h2 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
.poetic-block p {
  font-size: 14.5px;
  line-height: 1.7;
}

/* ----------------------------------------
   🏷 대문 인장 (Studio Badge)
---------------------------------------- */
.badge {
  font-family: 'HCR Batang','Batang',serif;
  text-align: center;
  margin: 0 auto 40px;
  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: 15px;
  text-align: center;
  padding: 8px 0;
}

#current-datetime {
  font-weight: 600;
  color: #FF8C00 !important;
}


/* ----------------------------------------
   ⏰ 아날로그 시계
---------------------------------------- */

#clock-box {
  display: flex;
  justify-content: center;
  margin: 15px 0 25px;
}

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

/* 안쪽 원 */
#clock::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  border: 1px solid #8FA8E6;
  box-sizing: border-box;
}

/* 공통 침 */
.hand {
  width: 2px;
  background: #1B1E45;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
}
/* 시침 */
.hand.hour {
  height: 40px;
}
/* 분침 */
.hand.minute {
  height: 49px;
}
/* 초침 */
.hand.second {
  height: 54px;
  width: 1px;
  background: #FF0000 !important;
}
/* 여백 미세 조정 */
#clock-box {
  display: flex;
  justify-content: center;
  margin: 12px 0 22px;
}

/* ----------------------------------------
   🌦 날씨 영역
---------------------------------------- */

#weather-area {
  font-size: 15px;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 40px;
  color: #000;
}

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

#weather-box {
  font-weight: 600;
  color: #000;
}
/* ----------------------------------------
   🔐 관리자 모드 — 비밀의 문
---------------------------------------- */

.secret-toggle {
  font-family: 'HCR Batang','Batang',serif;
  font-size: 16px;
  font-weight: 700;
  color: #C0C0C0;
  font-style: italic;
  text-align: center;
  cursor: default !important;
  text-decoration: none;   
  margin-top: 25px;
  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;
  color: #1B1E45 ;
  caret-color: #3558A8 ;
  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;
  margin-bottom: 15px;
  cursor: pointer;
  text-align: center;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 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;
}

/* ===============================
   🌙 Night Mode (ONE BLOCK)
================================ */
/*  사이드바 */
body.night #sidebar {
  background: rgba(15, 23, 42, 0.96) ;
  border-right-color: #1E3A8A ;
  color: #E5E7EB ;
}
/* 사이드바 내부 텍스트 */
body.night #sidebar * {
  color: #E5E7EB ;
}
/* 메인 로고 */
body.night #main-logo {
  border-color: #5C8EDB;
  background: #0B1220;
  box-shadow:
    0 0 6px rgba(92,142,219,0.35),
    0 0 14px rgba(92,142,219,0.55),
    inset 0 0 6px rgba(147,197,253,0.25);
}
/* 프로필 블록 */
body.night .poetic-block {
  background: rgba(30, 41, 59, 0.6) ;
  border-color: rgba(255,255,255,0.10) ;
}
/* 메뉴 */
body.night #sidebar-menu a {
  background: #1E293B ;
  border-color: #334155 ;
  color: #E2E8F0 ;
}
body.night #sidebar-menu a:hover {
  background: #334155 ;
  color: #BFDBFE ;
  border-color: #60A5FA ;
}
/*  대문인장/문패 */
body.night .badge {
  background: rgba(30, 41, 59, 0.4) ;
  border-color: #3A67C9 ;
  color: #E5E7EB ;
}
/* 날짜/시간 */
body.night #current-datetime {
  color: #93C5FD ;
}
/* 시계 */
body.night #clock {
  border-color: #1E3A8A ;
}
body.night .hand {
  background: #CBD5E1 ;
}
body.night .hand.second {
  background: #60A5FA ;
}
/* 날씨 */
body.night #weather-area,
body.night #weather-location,
body.night #weather-box {
  color: #E5E7EB ;
}
/* 비밀문 */
body.night .secret-box {
  background: #0F172A ;
  border-color: #334155 ;
}
body.night .secret-toggle {
  color: #9CA3AF ;
}
