/* main.css — 카카시 하네스 마을 지도 */

:root {
  --bg: #fbf7ee;            /* parchment */
  --bg-soft: #f3ecd8;
  --paper: #fffdf7;
  --ink: #1f2a37;
  --ink-soft: #4b5563;
  --leaf: #2f7a4d;          /* Konoha leaf green */
  --leaf-soft: #b9dfc6;
  --flame: #d97706;         /* sage flame */
  --star: #c9a227;          /* hoshigakure gold */
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --line: #e0d7be;
  --link: #1d4ed8;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* sidebar */
#sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 12px;
  border-bottom: 1px dashed var(--line);
}
.sb-logo { font-size: 28px; }
.sb-name { font-weight: 700; font-size: 15px; }
.sb-sub { font-size: 11px; color: var(--ink-soft); }
#sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px;
}
.sb-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 12px 8px 4px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.sb-item:hover { background: var(--bg-soft); }
.sb-item.active { background: var(--leaf-soft); color: var(--leaf); font-weight: 600; }
.sb-icon { width: 18px; text-align: center; }

.sb-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-soft);
}

/* main */
#main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#topbar {
  padding: 14px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
#subbar {
  padding: 8px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: none;
}
#subbar.visible { display: flex; gap: 12px; align-items: center; }
#view {
  padding: 24px;
  max-width: 1200px;
}

/* responsive */
@media (max-width: 760px) {
  body { flex-direction: column; }
  #sidebar { width: 100%; flex: none; height: auto; position: relative; }
  #sb-nav { max-height: 280px; }
  #view { padding: 16px; }
}
