/* ===== Windows 95 스타일 ===== */
:root {
  --raised: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --sunken: inset -1px -1px #ffffff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
* { box-sizing: border-box; }
body {
  font-family: Gulim, Dotum, "Malgun Gothic", sans-serif;
  font-size: 13px; color: #000;
  background: #008080;
  margin: 0 auto; max-width: 880px; padding: 12px;
}
a { color: #0000cc; }
hr { border: none; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }

/* 사이트 이름 + 메뉴 막대 */
.site-title { font-size: 40px; font-weight: bold; color: #fff; text-shadow: 3px 3px 0 #000; padding: 10px 4px 12px; }
.site-title a { color: #fff; text-decoration: none; }
.nav { background: #c0c0c0; box-shadow: var(--raised); padding: 7px 12px; text-align: right; margin-bottom: 12px; }

/* 창 */
.win { background: #c0c0c0; box-shadow: var(--raised); padding: 3px; margin-bottom: 14px; }
.win.small { max-width: 400px; }
.titlebar { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: bold; padding: 4px 8px; }
.win .body { padding: 14px; }

/* 버튼 (튀어나온 모양, 누르면 들어감) */
button, .btn {
  font-family: inherit; font-size: 13px; color: #000;
  background: #c0c0c0; border: none; box-shadow: var(--raised);
  padding: 5px 14px; min-width: 72px; text-align: center;
  display: inline-block; cursor: pointer; text-decoration: none;
}
button:active, .btn:active { box-shadow: var(--sunken); padding: 6px 13px 4px 15px; }
button:focus-visible, .btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
button:disabled { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }

/* 입력칸 (움푹 들어간 모양) */
input[type=text], input[type=password], textarea, select {
  font-family: inherit; font-size: 13px; background: #fff; color: #000;
  border: none; box-shadow: var(--sunken); padding: 5px 6px;
}
.sunken { background: #fff; box-shadow: var(--sunken); padding: 2px; }

/* 카테고리 탭 (토글 버튼처럼) */
.tabs { margin-bottom: 8px; }
.tabs a { display: inline-block; padding: 5px 14px; margin: 0 3px 4px 0; background: #c0c0c0; box-shadow: var(--raised); color: #000; text-decoration: none; }
.tabs a.on { box-shadow: var(--sunken); background: #d4d0c8; font-weight: bold; }

/* 글 목록 */
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
table.list th { background: #c0c0c0; box-shadow: var(--raised); padding: 5px 4px; font-weight: normal; }
table.list td { padding: 6px 4px; text-align: center; border-bottom: 1px dotted #808080; }
table.list td.t { text-align: left; }
table.list tbody tr:hover td { background: #000080; color: #fff; }
table.list tbody tr:hover a, table.list tbody tr:hover .tag { color: #fff; }
.tag { color: #555; font-size: 12px; }

/* 페이지 번호 */
.paging { text-align: center; margin: 14px 0 6px; }
.paging a, .paging b { display: inline-block; padding: 3px 9px; margin: 0 2px; font-weight: normal; }
.paging a { background: #c0c0c0; box-shadow: var(--raised); color: #000; text-decoration: none; }
.paging b { box-shadow: var(--sunken); background: #d4d0c8; }

/* 글 보기 */
.post-head { background: #fff; box-shadow: var(--sunken); padding: 10px 12px; margin-bottom: 8px; }
.post-head h2 { margin: 0 0 6px; font-size: 18px; }
.post-meta { color: #444; font-size: 12px; }
.content { background: #fff; box-shadow: var(--sunken); white-space: pre-wrap; word-break: break-word; padding: 12px; min-height: 160px; margin-bottom: 12px; }

.right { text-align: right; }
.err { color: #c00000; }

/* 첨부 사진 */
.pics { margin-bottom: 12px; }
.pics img { max-width: 100%; display: block; margin: 6px 0; box-shadow: var(--sunken); padding: 2px; background: #fff; }
.hint { color: #444; font-size: 12px; }

/* GIF 선택기 */
.gif-panel { background: #c0c0c0; box-shadow: var(--sunken); padding: 8px; margin-top: 6px; }
.gif-res { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; max-height: 260px; overflow-y: auto; background: #fff; box-shadow: var(--sunken); padding: 6px; min-height: 30px; }
.gif-res img { height: 80px; cursor: pointer; display: block; border: 2px solid transparent; }
.gif-res img:hover { border-color: #000080; }
.gif-sel img { height: 70px; vertical-align: middle; box-shadow: var(--sunken); padding: 2px; background: #fff; }

/* 댓글 */
.comment { background: #fff; box-shadow: var(--sunken); padding: 8px 10px; margin-bottom: 6px; }
.comment .who { font-weight: bold; }
.comment .when { color: #666; font-size: 12px; margin-left: 6px; }
.comment .ctext { white-space: pre-wrap; word-break: break-word; margin: 6px 0 2px; }
.comment img { max-width: 100%; max-height: 300px; display: block; margin-top: 6px; }
button.mini { min-width: 0; padding: 1px 8px; font-size: 12px; float: right; }
.pics img.gifimg { max-height: 400px; }
