@charset "UTF-8";

:root {
    --yellow: #FFCC00;
    --bg: #000;
    --bg-card: #111;
    --bg-card2: #0d0d0d;
    --border: #1e1e1e;
    --border2: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --text-dim: #555;
    --radius: 14px;
}

/* ── 공통 리셋 ── */
#bo_gall, #bo_v { font-family: 'Noto Sans KR', sans-serif; color: var(--text); }
#bo_gall h2 { position:absolute; font-size:0; line-height:0; overflow:hidden; }

/* ══ 체크박스 ══ */
.selec_chk { position:absolute; top:0; left:0; width:0; height:0; opacity:0; outline:0; z-index:-1; overflow:hidden; }
.chk_box { position:relative; }
.chk_box input[type="checkbox"] + label { position:relative; padding-left:22px; color:var(--text-muted); vertical-align:baseline; }
.chk_box input[type="checkbox"] + label span { position:absolute; top:2px; left:0; width:15px; height:15px; display:block; background:#111; border:1px solid var(--border2); border-radius:3px; }
.chk_box input[type="checkbox"]:checked + label span { background:url(./img/chk.png) no-repeat 50% 50% var(--yellow); border-color:var(--yellow); }

/* ══ 상단 버튼 영역 ══ */
#bo_btn_top { margin:0 0 20px; display:flex; align-items:center; justify-content:space-between; }
#bo_list_total { font-size:0.85rem; color:var(--text-muted); }
.btn_bo_user { display:flex; gap:6px; margin:0; padding:0; list-style:none; }
.btn_bo_user li { position:relative; }
.btn_bo_user .btn {
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:8px;
    background:var(--bg-card); border:1px solid var(--border2);
    color:var(--text-muted); font-size:0.88rem;
    text-decoration:none; transition:0.2s;
}
.btn_bo_user .btn:hover { border-color:var(--yellow); color:var(--yellow); }
.btn_admin { background:rgba(255,204,0,0.08) !important; color:var(--yellow) !important; }

/* ══ 카테고리 ══ */
#bo_cate { margin:0 0 20px; }
#bo_cate h2 { position:absolute; font-size:0; overflow:hidden; }
#bo_cate ul { display:flex; flex-wrap:wrap; gap:8px; padding:0; list-style:none; }
#bo_cate li { padding:0; }
#bo_cate a { display:block; padding:6px 16px; border-radius:50px; border:1px solid var(--border2); color:var(--text-muted); font-size:0.85rem; text-decoration:none; transition:0.2s; }
#bo_cate a:hover, #bo_cate #bo_cate_on { background:var(--yellow); color:#000; border-color:var(--yellow); font-weight:700; }

/* ══ 갤러리 그리드 ══ */
#bo_gall #gall_ul { margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
#bo_gall .gall_li { float:none !important; width:auto !important; padding:0 !important; }
#bo_gall .box_clear { display:none; }
#bo_gall .gall_box { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:border-color 0.3s, box-shadow 0.3s; }
#bo_gall .gall_box:hover { border-color:rgba(255,204,0,0.3); box-shadow:0 8px 32px rgba(255,204,0,0.07); }
#bo_gall .gall_con { position:relative; }

/* 썸네일 */
#bo_gall .gall_img { border-bottom:none; text-align:center; overflow:hidden; height:200px; background:var(--bg-card2); }
#bo_gall .gall_img a { display:block; height:100%; }
#bo_gall .gall_img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; display:block; }
#bo_gall .gall_box:hover .gall_img img { transform:scale(1.04); }
#bo_gall .gall_img span { display:flex; align-items:center; justify-content:center; height:100%; font-size:0.85rem; color:var(--text-dim); text-transform:uppercase; font-weight:700; }

/* 텍스트 영역 */
#bo_gall .gall_text_href { padding:14px 16px 8px; }
#bo_gall .bo_cate_link { display:inline-block; background:rgba(255,204,0,0.1); color:var(--yellow); font-size:0.75rem; font-weight:700; padding:3px 10px; border-radius:4px; margin-bottom:6px; text-decoration:none; }
#bo_gall .bo_tit { display:block; font-size:0.95rem; font-weight:700; color:var(--text); line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-decoration:none; }
#bo_gall .bo_tit:hover { color:var(--yellow); }
#bo_gall .bo_cnt { display:none; }
#bo_gall .new_icon { display:inline-block; font-size:0.7rem; color:#000; background:var(--yellow); padding:1px 5px; border-radius:3px; margin-left:4px; font-weight:700; vertical-align:middle; }

/* 날짜·조회 */
#bo_gall .gall_info { padding:6px 16px 14px; display:flex; gap:10px; font-size:0.78rem; color:var(--text-dim); }
#bo_gall .gall_info strong { display:none; }
#bo_gall .gall_date, #bo_gall .gall_view { display:inline-flex; align-items:center; gap:4px; }
#bo_gall .gall_option { display:none; }
#bo_gall .gall_chk { position:absolute; top:8px; left:8px; z-index:2; }
#bo_gall .gall_now .gall_box { border-color:rgba(255,204,0,0.5); }

/* 빈 목록 */
#bo_gall li.empty_list { grid-column:1/-1; padding:80px 0; text-align:center; color:var(--text-muted); }

/* 전체선택 */
#gall_allchk { margin:0 0 12px; }
#gall_allchk label { color:var(--text-muted); font-size:0.85rem; }

/* ══ 페이지네이션 ══ */
.pg_wrap { margin:30px 0 0; text-align:center; }
.pg { display:inline-flex; gap:4px; flex-wrap:wrap; justify-content:center; }
.pg a, .pg strong { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 8px; border-radius:8px; font-size:0.88rem; text-decoration:none; transition:0.2s; border:1px solid var(--border2); color:var(--text-muted); background:var(--bg-card); }
.pg strong { background:var(--yellow); color:#000; border-color:var(--yellow); font-weight:700; }
.pg a:hover { border-color:var(--yellow); color:var(--yellow); }
.pg .pg_prev, .pg .pg_next, .pg .pg_start, .pg .pg_end { font-weight:700; }

/* ══ 하단 버튼 ══ */
.bo_fx { float:none; margin:20px 0 0; display:flex; justify-content:flex-end; }
.bo_fx ul { display:flex; gap:6px; padding:0; list-style:none; margin:0; }

/* ══ 검색 ══ */
.bo_sch_wrap { display:none; width:100%; height:100%; position:fixed; top:0; left:0; z-index:9999; }
.bo_sch { position:absolute; top:50%; left:50%; background:var(--bg-card); border:1px solid var(--border2); border-radius:12px; width:330px; padding:20px; transform:translate(-50%,-50%); box-shadow:0 20px 60px rgba(0,0,0,0.8); }
.bo_sch h3 { color:var(--text); font-size:1rem; font-weight:700; padding:0 0 14px; border-bottom:1px solid var(--border); margin-bottom:14px; }
.bo_sch select { width:100%; height:38px; background:var(--bg); border:1px solid var(--border2); border-radius:6px; color:var(--text); padding:0 10px; margin-bottom:10px; }
.bo_sch .sch_bar { display:flex; border:1px solid var(--border2); border-radius:6px; overflow:hidden; background:var(--bg); }
.bo_sch .sch_input { flex:1; height:38px; background:transparent; border:0; color:var(--text); padding:0 12px; }
.bo_sch .sch_btn { height:38px; width:40px; background:none; border:0; color:var(--text-muted); font-size:15px; cursor:pointer; }
.bo_sch .sch_btn:hover { color:var(--yellow); }
.bo_sch .bo_sch_cls { position:absolute; right:0; top:0; background:none; border:0; color:var(--text-muted); padding:14px 16px; font-size:16px; cursor:pointer; }
.bo_sch_bg { width:100%; height:100%; background:rgba(0,0,0,0.6); }

/* ══ 더보기 옵션 ══ */
.more_opt { display:none; position:absolute; top:42px; right:0; background:var(--bg-card); border:1px solid var(--border2); border-radius:8px; z-index:999; min-width:100px; overflow:hidden; }
.more_opt li { border-bottom:1px solid var(--border); padding:0; float:none; width:auto; margin:0; }
.more_opt li:last-child { border-bottom:0; }
.more_opt li button, .more_opt li a { display:block; width:100%; padding:10px 16px; background:none; border:0; color:var(--text-muted); font-size:0.88rem; text-align:left; cursor:pointer; white-space:nowrap; }
.more_opt li:hover button, .more_opt li:hover a { color:var(--yellow); background:rgba(255,204,0,0.05); }
.more_opt li i { float:right; line-height:20px; }


/* ════════════════════════════════════════
   게시글 읽기
════════════════════════════════════════ */
#bo_v { margin-bottom:30px; background:transparent; }

/* 제목 */
#bo_v_title { padding:0 0 20px; border-bottom:1px solid var(--border); }
#bo_v_title .bo_v_cate { display:inline-block; background:rgba(255,204,0,0.1); color:var(--yellow); font-size:0.78rem; font-weight:700; padding:3px 10px; border-radius:4px; margin-bottom:8px; }
#bo_v_title .bo_v_tit { display:block; font-size:1.6rem; font-weight:900; color:#fff; margin:0; line-height:1.4; word-break:keep-all; }

/* 작성자 정보 */
#bo_v_info { margin:0; padding:16px 0; border-bottom:1px solid var(--border); color:var(--text-muted); }
#bo_v_info h2 { position:absolute; font-size:0; overflow:hidden; }
#bo_v_info .profile_info { display:inline-flex; align-items:center; gap:12px; float:left; }
#bo_v_info .pf_img img { border-radius:50%; width:42px; height:42px; border:2px solid var(--border2); }
#bo_v_info .profile_info_ct { line-height:1.6; }
#bo_v_info strong { display:inline-flex; align-items:center; gap:6px; margin:0 12px 0 0; font-size:0.88rem; font-weight:normal; color:var(--text-muted); }
#bo_v_info strong a { color:var(--text-muted); text-decoration:none; }
#bo_v_info .sv_member, #bo_v_info .member { color:var(--text); font-weight:700; }
#bo_v_info .if_date { color:var(--text-dim); font-size:0.82rem; }

/* 상단 버튼 */
#bo_v_top { padding:0; }
#bo_v_top h2 { position:absolute; font-size:0; overflow:hidden; }
#bo_v_top ul { display:flex; gap:6px; padding:0; list-style:none; float:right; }
.bo_v_com { margin:16px 0; float:right; display:flex; gap:6px; }
.bo_v_com > li { position:relative; float:none; }

/* SNS 공유 */
#bo_v_share { padding:10px 0; border-bottom:1px solid var(--border); }
#bo_v_share .btn { color:var(--text-muted); border:1px solid var(--border2); background:var(--bg-card); border-radius:6px; padding:0 12px; height:32px; line-height:32px; font-size:0.85rem; }
#bo_v_share .btn:hover { border-color:var(--yellow); color:var(--yellow); }

/* 첨부 이미지 */
#bo_v_img { width:100%; overflow:hidden; margin:20px 0; }
#bo_v_img a.view_image { display:inline-block; line-height:0; font-size:0; pointer-events:none; cursor:default; }
#bo_v_img img { max-width:100%; height:auto; border-radius:8px; margin-bottom:16px; display:block; }

/* 본문 */
#bo_v_con {
    margin:20px 0 30px; width:100%; line-height:1.9; min-height:200px;
    word-break:break-all; overflow:hidden; color:var(--text); font-size:1rem;
    user-select:none; -webkit-user-select:none; -ms-user-select:none;
}
#bo_v_con a { color:var(--yellow); text-decoration:underline; }
#bo_v_con img { max-width:100%; height:auto; border-radius:8px; display:block; margin:12px auto; pointer-events:none; }
#bo_v_con p { margin-bottom:12px; }

/* 첨부파일 */
#bo_v_file { margin:20px 0; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; }
#bo_v_file h2 { position:absolute; font-size:0; overflow:hidden; }
#bo_v_file ul { margin:0; list-style:none; padding:0; }
#bo_v_file li { padding:10px 0; border-bottom:1px solid var(--border); }
#bo_v_file li:last-child { border-bottom:0; padding-bottom:0; }
#bo_v_file li i { float:left; color:var(--text-dim); font-size:1.6rem; margin-right:14px; line-height:1.2; }
#bo_v_file a { color:var(--text); text-decoration:none; }
#bo_v_file a:hover { color:var(--yellow); }
#bo_v_file .bo_v_file_cnt { color:var(--text-dim); font-size:0.78rem; display:block; margin-top:2px; }

/* 관련링크 */
#bo_v_link { margin:20px 0; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; }
#bo_v_link h2 { position:absolute; font-size:0; overflow:hidden; }
#bo_v_link ul { margin:0; list-style:none; padding:0; }
#bo_v_link li { padding:10px 0; border-bottom:1px solid var(--border); }
#bo_v_link li:last-child { border-bottom:0; padding-bottom:0; }
#bo_v_link li i { float:left; color:var(--text-dim); font-size:1.6rem; margin-right:14px; }
#bo_v_link a { color:var(--yellow); text-decoration:none; }
#bo_v_link a:hover { text-decoration:underline; }
#bo_v_link .bo_v_link_cnt { color:var(--text-dim); font-size:0.78rem; display:block; margin-top:2px; }

/* 추천/비추천 */
#bo_v_act { margin:0 0 30px; text-align:center; }
#bo_v_act .bo_v_act_gng { position:relative; display:inline-block; margin:0 6px; }
#bo_v_act a { border:1px solid var(--border2); border-radius:50px; display:inline-flex; align-items:center; gap:6px; padding:0 20px; height:44px; color:var(--text-muted); text-decoration:none; transition:0.2s; }
#bo_v_act a:hover { border-color:var(--yellow); color:var(--yellow); }
#bo_v_act i { font-size:1.2rem; }
#bo_v_act_good, #bo_v_act_nogood { display:none; position:absolute; top:50px; left:50%; transform:translateX(-50%); z-index:9999; padding:8px 14px; background:var(--yellow); color:#000; font-weight:700; font-size:0.82rem; border-radius:6px; white-space:nowrap; }

/* 이전글/다음글 */
.bo_v_nb { margin:20px 0; list-style:none; padding:0; border-top:1px solid var(--border); }
.bo_v_nb li { border-bottom:1px solid var(--border); padding:12px 16px; display:flex; align-items:center; gap:14px; }
.bo_v_nb li:hover { background:rgba(255,204,0,0.03); }
.bo_v_nb .nb_tit { font-size:0.8rem; color:var(--text-dim); white-space:nowrap; min-width:56px; }
.bo_v_nb .nb_tit i { margin-right:4px; }
.bo_v_nb a { color:var(--text-muted); font-size:0.9rem; text-decoration:none; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.bo_v_nb a:hover { color:var(--yellow); }
.bo_v_nb .nb_date { font-size:0.78rem; color:var(--text-dim); white-space:nowrap; }

/* ══ 댓글 ══ */
.cmt_btn { width:100%; text-align:left; border:0; border-bottom:1px solid var(--border); background:transparent; color:#fff; font-weight:700; margin:30px 0 0; padding:0 0 14px; font-size:1rem; cursor:default; }
.cmt_btn span.total { color:var(--yellow); margin-right:4px; }
.cmt_btn b { color:#fff; font-size:1.1rem; }
.cmt_btn span.cmt_more { float:right; }
#bo_vc h2 { position:absolute; font-size:0; overflow:hidden; }
#bo_vc article { margin:20px 0; position:relative; border-bottom:1px solid var(--border); padding-bottom:16px; }
#bo_vc article .pf_img img { border-radius:50%; width:40px; height:40px; border:1px solid var(--border2); }
#bo_vc article .pf_img { float:left; margin-right:12px; }
#bo_vc article .cm_wrap { float:left; width:calc(100% - 60px); }
#bo_vc header { position:relative; width:100%; }
.bo_vc_hdinfo { color:var(--text-dim); font-size:0.82rem; }
#bo_vc .member, #bo_vc .sv_member { color:#fff; font-weight:700; }
#bo_vc .cmt_contents { line-height:1.8; padding:6px 0 12px; color:var(--text); font-size:0.95rem; }
#bo_vc_empty { padding:60px 0 !important; color:var(--text-muted); text-align:center; }
#bo_vc .bo_vl_opt { position:absolute; top:0; right:0; }
.bo_vc_act { display:none; position:absolute; right:0; top:30px; background:var(--bg-card); border:1px solid var(--border2); border-radius:8px; list-style:none; margin:0; padding:4px 0; z-index:9999; }
.bo_vc_act li a { display:block; padding:8px 16px; color:var(--text-muted); text-decoration:none; font-size:0.85rem; white-space:nowrap; }
.bo_vc_act li a:hover { color:var(--yellow); }

/* 댓글 작성 */
.bo_vc_w { position:relative; margin:20px 0; }
.bo_vc_w textarea { width:100%; height:100px; background:var(--bg-card); border:1px solid var(--border2); border-radius:8px; color:var(--text); padding:12px; font-family:inherit; font-size:0.95rem; resize:vertical; }
.bo_vc_w textarea:focus { outline:none; border-color:var(--yellow); }
.bo_vc_w_info { margin:10px 0; }
.bo_vc_w_info .frm_input { background:var(--bg-card); border:1px solid var(--border2); border-radius:6px; color:var(--text); padding:8px 12px; height:38px; margin-right:6px; }
.bo_vc_w .btn_submit { background:var(--yellow); color:#000; border:0; border-radius:8px; padding:0 20px; height:40px; font-weight:800; font-size:0.95rem; cursor:pointer; transition:0.2s; }
.bo_vc_w .btn_submit:hover { opacity:0.85; }
.bo_vc_w .btn_confirm { margin-top:10px; }

/* ══ 반응형 ══ */
@media (max-width: 992px) {
    #bo_gall #gall_ul { grid-template-columns:repeat(2,1fr); gap:14px; }
}
@media (max-width: 600px) {
    #bo_gall #gall_ul { grid-template-columns:1fr; gap:12px; }
    #bo_gall .gall_img { height:220px; }
    #bo_v_title .bo_v_tit { font-size:1.3rem; }
    .bo_v_nb li { flex-wrap:wrap; gap:6px; }
    .bo_v_nb .nb_date { width:100%; }
}
