/* vibe coding: 너무 과하게 꾸미지 말고, 오래 써도 눈 안 피곤한 쪽으로 */
:root{
  --bg: #0f1115;
  --panel: #151a22;
  --card: #171d27;
  --text: #e8edf5;
  --muted: #a7b2c7;
  --line: rgba(255,255,255,.10);
  --accent: #7aa2ff;
  --accent2: #7dffb2;
  --danger: #ff6b6b;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
[data-theme="light"]{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #1a2433;
  --muted: #5a667a;
  --line: rgba(0,0,0,.10);
  --accent: #2f67ff;
  --accent2: #12b76a;
  --shadow: 0 10px 30px rgba(15,17,21,.12);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

a{ color: inherit; text-decoration: none; }
.muted{ color: var(--muted); }
hr{ border:none; border-top:1px solid var(--line); margin: 18px 0; }

.app{
  display:grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar{
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow:auto;
}

.brand{ margin-bottom: 16px; }
.brand__title{ font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.brand__sub{ font-size: 12px; color: var(--muted); margin-top: 6px; }

.controls{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.input, .select{
  width:100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.input:focus, .select:focus{ border-color: rgba(122,162,255,.65); }

.row{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

.chips{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip{
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  user-select:none;
}
.chip.is-on{ border-color: rgba(125,255,178,.6); box-shadow: 0 0 0 2px rgba(125,255,178,.10) inset; }

.nav{ margin-top: 14px; display:flex; gap: 8px; flex-wrap: wrap; }
.nav__link{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}
.nav__link:hover{ color: var(--text); border-color: rgba(122,162,255,.5); }

.sidebar__footer{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.main{ padding: 18px; }
.topbar{
  display:flex;
  align-items:center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(8px);
  padding: 10px 0 14px;
}
.topbar__title{ font-weight: 800; letter-spacing: -.2px; }
.topbar__right{ margin-left:auto; display:flex; gap: 8px; }

.btn{
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.btn--ghost{ background: transparent; }
.btn:hover{ border-color: rgba(122,162,255,.5); }

.content{
  margin-top: 8px;
  display:grid;
  gap: 14px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{ position: fixed; left: 0; top: 0; width: 320px; transform: translateX(-110%); transition: transform .2s ease; z-index: 50; }
  .sidebar.is-open{ transform: translateX(0); }
  .grid{ grid-template-columns: 1fr; }
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
}
.badge--public{ border-color: rgba(122,162,255,.55); color: var(--text); }
.badge--health{ border-color: rgba(255,107,107,.45); color: var(--text); }
.badge--creative{ border-color: rgba(125,255,178,.45); color: var(--text); }
.badge--dev{ border-color: rgba(217,167,255,.45); color: var(--text); }

.post-title{ font-size: 20px; font-weight: 900; margin: 0 0 10px; letter-spacing: -.3px; }
.post-meta{ display:flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.post-list{ display:grid; gap: 10px; }
.item{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor:pointer;
}
.item:hover{ border-color: rgba(122,162,255,.5); }
.item__title{ font-weight: 800; }
.item__sub{ color: var(--muted); font-size: 12px; margin-top: 6px; display:flex; gap: 10px; flex-wrap: wrap; }
.kbd{
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 8px;
  color: var(--muted);
}

.md{
  line-height: 1.7;
  letter-spacing: -.1px;
}
.md h1,.md h2,.md h3{ letter-spacing: -.2px; }
.md code{ font-family: var(--mono); font-size: 0.95em; }
.md pre{
  overflow:auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.md blockquote{
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(122,162,255,.7);
  background: rgba(122,162,255,.08);
  border-radius: 10px;
}
