/* skin/style.css */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Pretendard:wght@400;600;800&display=swap');

:root { 
    --nc-point: #e11d48; 
    --nc-blue: #4385f4;
    --nc-border: #eeeeee; 
    --nc-text-main: #111111; 
    --nc-text-body: #333333;
    --nc-text-muted: #999999;
}

* { box-sizing: border-box; }
body { background: #ffffff; margin: 0; font-family: 'Pretendard', sans-serif; color: var(--nc-text-main); line-height: 1.6; }
.wrap { max-width: 1028px; margin: 0 auto; padding: 0 25px; min-height: 100vh; padding-bottom: 180px; }

/* 1. 헤더 & 사용자 정보 */
header { padding: 60px 0 30px; border-bottom: 2px solid #000; margin-bottom: 30px; position: relative; }
header h1 { font-family: 'JetBrains Mono'; font-size: 42px; font-weight: 800; letter-spacing: -2px; margin: 0; }
.user-info-bar { margin-top: 15px; font-family: 'JetBrains Mono'; font-size: 11px; display: flex; align-items: center; gap: 12px; }
.user-profile { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; padding: 6px 12px; border-radius: 2px; }
.profile-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--nc-point); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #00ff00; border-radius: 50%; margin-right: 5px; }

/* 2. 게시판 리스트 타입 스타일 */
.list-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.list-table tr { transition: 0.2s; }
.list-table tr:hover { background: #fcfcfc; }
.list-table td { padding: 25px 10px; border-bottom: 1px solid var(--nc-border); vertical-align: middle; }

.td-no { width: 80px; font-family: 'JetBrains Mono'; font-size: 13px; color: var(--nc-point); font-weight: 700; }
.td-subject { font-size: 18px; font-weight: 700; }
.td-subject a { color: inherit; text-decoration: none; display: block; }
.td-date { width: 120px; text-align: right; color: var(--nc-text-muted); font-family: 'JetBrains Mono'; font-size: 13px; }

/* 3. 갤러리/유튜브 타입 스타일 */
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; }
.gallery-item { text-decoration: none; color: inherit; border: 1px solid var(--nc-border); transition: 0.3s; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: #000; }

.thumb-box { width: 100%; aspect-ratio: 16/10; background: #f0f0f0; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover .thumb-box img { transform: scale(1.05); }

/* 유튜브 표시용 플레이 아이콘 오버레이 */
.thumb-box.is-video::after {
    content: '\f144'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; font-size: 40px; color: rgba(255,255,255,0.8); z-index: 2;
}

.info-box { padding: 20px; border-top: 1px solid var(--nc-border); }
.info-id { font-family: 'JetBrains Mono'; color: var(--nc-point); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.info-subject { font-size: 16px; font-weight: 700; color: #000; line-height: 1.4; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 4. 하단 네비게이션 (공통) */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-top: 1px solid #000; z-index: 1000; }
.nav-inner { max-width: 1028px; margin: 0 auto; padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.f-link { color: #999; text-decoration: none; font-size: 11px; font-weight: 800; font-family: 'JetBrains Mono'; transition: 0.2s; }
.f-link:hover { color: var(--nc-point); }
.f-link.active { border-bottom: 2px solid var(--nc-point); color: #000; }
.btn-write { background: #000; color: #fff; padding: 12px 24px; text-decoration: none; font-size: 11px; font-weight: 900; font-family: 'JetBrains Mono'; border-radius: 2px; transition: 0.2s; }
.btn-write:hover { background: var(--nc-point); }

/* 5. 관리자 설정 버튼 */
.btn-admin-setup { position: absolute; right: 0; bottom: 40px; background: #fff; border: 1px solid #000; padding: 5px 12px; font-family: 'JetBrains Mono'; font-size: 10px; font-weight: 800; cursor: pointer; transition: 0.2s; }
.btn-admin-setup:hover { background: #000; color: #fff; }

/* 6. 모바일 대응 */
@media (max-width: 768px) {
    header h1 { font-size: 32px; }
    .gallery-container { grid-template-columns: 1fr; }
    .nav-inner { padding: 15px; }
    .nav-links { gap: 10px; }
}
