@charset "utf-8";

/* ==========================================================================
   GNUBOARD 5 MOBILE PREMIUM MODERN DARK THEME
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-surface-hover: #222d42;
  --bg-input: #151d2d;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --text-highlight: #ffffff;
  
  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --color-danger: #ef4444;
}

/* 초기화 */
html {
  overflow-y: scroll;
  height: 100%;
  min-width: 320px;
  background: var(--bg-main);
  color-scheme: dark;
}
body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  background: var(--bg-main);
  color: var(--text-main);
  height: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {
  margin: 0;
  padding: 0;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--text-highlight);
  font-weight: 600;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
legend {
  position: absolute;
  font-size: 0;
  line-height: 0;
  text-indent: -9999em;
  overflow: hidden;
}
label, input, button, select, img {
  vertical-align: middle;
}
input, button {
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-family: inherit;
}
button {
  cursor: pointer;
}
input[type=text], input[type=password], input[type=submit], input[type=image], button {
  font-size: 1em;
  -webkit-appearance: none;
}
textarea, select {
  font-size: 1em;
  font-family: inherit;
}
textarea {
  border-radius: 6px;
  -webkit-appearance: none;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px;
}
select {
  margin: 0;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
}
p {
  margin: 0;
  padding: 0;
  word-break: break-all;
}
hr {
  display: none;
}
pre {
  overflow-x: scroll;
  font-size: 0.95em;
  background: var(--bg-surface-elevated);
  padding: 10px;
  border-radius: 6px;
  color: #e2e8f0;
}
a {
  color: var(--text-main);
  text-decoration: none;
}
ul, li, dl, dt, dd {
  padding: 0;
  margin: 0;
}
ul {
  list-style: none;
}

*, :after, :before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 상단 레이아웃 */
#hd {
  position: relative;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}
#hd:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#hd_h1 {
  position: absolute;
  font-size: 0;
  text-indent: -9999em;
  line-height: 0;
  overflow: hidden;
}

#logo {
  padding: 12px 15px;
  height: 56px;
  text-align: center;
}
#logo img {
  vertical-align: middle;
  max-height: 32px;
  width: auto;
}

#gnb_open {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0 10px;
  height: 40px;
  width: 40px;
  border: 0;
  color: var(--text-main);
  background: none;
  font-size: 20px;
}

/* 모바일 슬라이드 GNB 메뉴 */
#gnb {
  display: none;
  background: var(--bg-surface);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 85%;
  max-width: 340px;
  height: 100%;
  overflow-y: auto;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.6);
  border-right: 1px solid var(--border-color);
}
#gnb_1dul {
  background: transparent;
}
#gnb_1dul a {
  display: block;
  color: var(--text-main);
}
.gnb_1dli {
  position: relative;
  line-height: 44px;
}
.gnb_1dli button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 16px;
}
.gnb_1da {
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 15px;
}
.gnb_2dul {
  display: none;
  background: var(--bg-surface-elevated);
}
.gnb_2da {
  padding-left: 32px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border-subtle);
}
#gnb_close {
  display: block;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 99;
  font-weight: bold;
  height: 36px;
  width: 36px;
  border: 0;
  color: var(--text-muted);
  font-size: 22px;
  background: transparent;
}

/* 검색바 */
#hd_sch {
  padding: 10px 15px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
#hd_sch form {
  position: relative;
}
#hd_sch #sch_stx {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 15px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 20px;
  font-size: 13px;
}
#hd_sch #sch_submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
}

/* 사용자 메뉴 버튼 */
#user_btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0 10px;
  height: 40px;
  width: 40px;
  border: 0;
  color: var(--text-main);
  font-size: 20px;
  background: none;
}
#user_menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  overflow-y: auto;
  z-index: 99999;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.6);
  padding: 20px 15px;
}
#user_close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  color: var(--text-muted);
  font-size: 22px;
  background: transparent;
}

#hd_nb {
  background: var(--bg-surface);
  margin-top: 10px;
  border-bottom: 1px solid var(--border-color);
}
#hd_nb:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#hd_nb li {
  width: 50%;
  float: left;
  line-height: 25px;
  font-weight: 600;
}
#hd_nb li a {
  display: block;
  color: var(--text-main);
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-subtle);
}
#hd_nb .hd_nb1 {
  border-right: 1px solid var(--border-subtle);
}
#hd_nb .hd_nb3 {
  border-right: 1px solid var(--border-subtle);
}

/* 본문 레이아웃 */
#container {
  padding: 15px;
  min-height: 400px;
}
#container_title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* 하단 푸터 */
#ft {
  background: #060911;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 25px 15px;
  font-size: 12px;
}
#ft_copy {
  text-align: center;
  margin-top: 15px;
  color: var(--text-sub);
}
