@charset "utf-8";

/* ================================
   공통 변수 & 리셋
================================ */
#bo_list, #bo_v, #bo_w, .bo_sch_wrap {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* ================================
   목록 - #bo_list
================================ */
#bo_list { position: relative; margin-bottom: 30px; }
#bo_list:after { display: block; visibility: hidden; clear: both; content: ""; }

/* 카테고리 */
#bo_cate { margin: 0 0 20px; }
#bo_cate h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_cate ul { zoom: 1; }
#bo_cate ul:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_cate li { display: inline-block; padding: 3px; }
#bo_cate a { display: block; padding: 6px 18px; border-radius: 50px; border: 1px solid #e0e0e0; color: #888; font-size: 13px; transition: all 0.2s; text-decoration: none; }
#bo_cate a:hover { background: #a33570; color: #fff; border-color: #a33570; }
#bo_cate #bo_cate_on { background: #a33570; color: #fff; border-color: #a33570; font-weight: 600; }

/* 상단 버튼 */
#bo_btn_top { margin: 0 0 14px; overflow: hidden; }
#bo_btn_top:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_list_total { float: left; font-size: 13px; color: #888; line-height: 36px; }
#bo_list_total span { font-weight: 700; color: #a33570; }

.btn_bo_user { float: right; margin: 0; padding: 0; list-style: none; }
.btn_bo_user li { float: left; margin-left: 4px; }
.btn_bo_user .btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; min-width: 36px; padding: 0 10px;
    border-radius: 8px; background: #fff; border: 1px solid #e0e0e0;
    color: #666; font-size: 14px; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn_bo_user .btn:hover { background: #a33570; color: #fff; border-color: #a33570; }

/* 테이블 */
.tbl_head01.tbl_wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl_head01 table { width: 100%; border-collapse: collapse; border-top: 2px solid #1a1a2e; }
.tbl_head01 thead th {
    padding: 13px 10px; font-size: 13px; font-weight: 600; color: #1a1a2e;
    background: #f7f7f7; border-bottom: 1px solid #e8e8e8; text-align: center; white-space: nowrap;
}
.tbl_head01 tbody tr { border-bottom: 1px solid #efefef; transition: background 0.15s; }
.tbl_head01 tbody tr:hover { background: #fdf5fa; }
.tbl_head01 tbody td { padding: 13px 10px; font-size: 14px; color: #333; vertical-align: middle; }
.tbl_head01 .empty_table { text-align: center !important; padding: 50px 0 !important; color: #bbb; font-size: 14px; }

/* 공지글 */
.bo_notice td { background: #fdf8fb !important; }
.bo_notice .notice_icon {
    display: inline-block; padding: 2px 8px; background: #a33570; color: #fff;
    border-radius: 4px; font-size: 11px; font-weight: 700; vertical-align: middle;
}
.bo_notice td a { font-weight: 600; }

/* 셀 */
.tbl_head01 .td_num, .tbl_head01 .td_num2 { width: 55px; text-align: center; color: #999; font-size: 13px; }
.tbl_head01 .td_datetime, .tbl_head01 .td_date { width: 95px; text-align: center; font-size: 13px; color: #999; }
.tbl_head01 .td_name, .tbl_head01 .td_nick { width: 85px; text-align: center; font-size: 13px; color: #888; }
.tbl_head01 .td_chk { width: 40px; text-align: center; }
.tbl_head01 .td_mng { width: 60px; text-align: center; }
.tbl_head01 .td_subject { text-align: left; }

/* 제목 */
.bo_tit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.bo_tit a { color: #222; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.bo_tit a:hover { color: #a33570; }
.cnt_cmt { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: #a33570; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; }
.new_icon { display: inline-block; padding: 1px 5px; background: #e83e8c; color: #fff; border-radius: 4px; font-size: 10px; font-weight: 700; }
.bo_cate_link { display: inline-block; padding: 2px 8px; background: #f7eef4; color: #a33570; border-radius: 4px; font-size: 11px; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.bo_current { color: #a33570; font-weight: 700; }

/* 체크박스 */
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; z-index: -1; }
.chk_box { position: relative; }
.chk_box input[type="checkbox"] + label span {
    display: inline-block; width: 16px; height: 16px; background: #fff;
    border: 1.5px solid #ddd; border-radius: 4px; vertical-align: middle; transition: all 0.2s; cursor: pointer;
}
.chk_box input[type="checkbox"]:checked + label span { background: #a33570 url(./img/chk.png) no-repeat center; border-color: #a33570; }

/* more 옵션 */
.more_opt { display: none; position: absolute; top: 42px; right: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 999; min-width: 120px; padding: 4px 0; list-style: none; margin: 0; }
.more_opt li { padding: 0; list-style: none; }
.more_opt li a, .more_opt li button { display: block; width: 100%; padding: 9px 16px; background: none; border: 0; color: #555; font-size: 13px; text-align: left; cursor: pointer; text-decoration: none; transition: all 0.15s; box-sizing: border-box; }
.more_opt li a:hover, .more_opt li button:hover { background: #f7eef4; color: #a33570; }

/* 페이지네이션 */
#bo_page { text-align: center; margin: 24px 0 10px; }
.pg_wrap { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: center; }
.pg_wrap a, .pg_wrap strong {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 8px;
    border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px;
    color: #555; text-decoration: none; transition: all 0.2s;
}
.pg_wrap a:hover { background: #f7eef4; border-color: #a33570; color: #a33570; }
.pg_wrap strong { background: #a33570; border-color: #a33570; color: #fff; font-weight: 700; }

/* 하단 버튼 */
.bo_fx { overflow: hidden; margin: 14px 0; }
.bo_fx:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_fx .btn_bo_user { float: right; }

/* ================================
   검색 - .bo_sch_wrap
================================ */
.bo_sch_wrap { display: none; margin-top: 16px; }
.bo_sch_bg { display: none; }
.bo_sch {
    background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px 24px;
}
.bo_sch h3 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 14px; }
.bo_sch select { padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; background: #fff; margin-bottom: 8px; }
.sch_bar { display: flex; gap: 8px; }
.sch_input { flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; min-width: 0; }
.sch_input:focus { outline: none; border-color: #a33570; }
.sch_btn { padding: 10px 20px; background: #a33570; color: #fff; border: 0; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.sch_btn:hover { background: #8a2d5f; }
.bo_sch_cls { position: absolute; top: 12px; right: 12px; background: none; border: 0; font-size: 18px; color: #aaa; cursor: pointer; }

/* ================================
   뷰 - #bo_v
================================ */
#bo_v { margin-bottom: 30px; }

/* 제목 */
#bo_v_title {
    font-size: 22px; font-weight: 700; color: #1a1a2e;
    padding: 18px 0 16px; border-bottom: 2px solid #1a1a2e; line-height: 1.4; margin: 0;
}
.bo_v_cate { display: inline-block; padding: 3px 10px; background: #f7eef4; color: #a33570; border-radius: 4px; font-size: 13px; font-weight: 600; margin-right: 8px; vertical-align: middle; }
.bo_v_tit { vertical-align: middle; }

/* 정보 */
#bo_v_info { padding: 12px 0; border-bottom: 1px solid #efefef; overflow: hidden; }
#bo_v_info:after { display: block; visibility: hidden; clear: both; content: ""; }
.profile_info { display: flex; align-items: center; gap: 12px; }
.pf_img img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #f0f0f0; }
.pf_img { flex-shrink: 0; }
.profile_info_ct { font-size: 13px; color: #888; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile_info_ct strong { color: #333; font-weight: 600; }
.profile_info_ct a { color: #888; text-decoration: none; }
.if_date { color: #aaa; }

/* 상단 버튼 */
#bo_v_top { margin-top: 10px; }
.bo_v_com { float: right; }
.btn_bo_user.bo_v_com li { float: left; margin-left: 4px; }

/* 본문 */
#bo_v_atc { padding: 0; }
#bo_v_atc_title { position: absolute; font-size: 0; overflow: hidden; width: 0; height: 0; }
#bo_v_share { margin: 16px 0 10px; }
#bo_v_img { margin: 10px 0; }
#bo_v_img img { max-width: 100%; height: auto; }
#bo_v_con { padding: 24px 0; min-height: 160px; line-height: 1.85; font-size: 15px; color: #333; border-bottom: 1px solid #efefef; word-break: break-word; }

/* 파일 첨부 */
#bo_v_file { padding: 14px 0; border-bottom: 1px solid #efefef; font-size: 13px; color: #555; }
#bo_v_file ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#bo_v_file li a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 6px; color: #555; text-decoration: none; font-size: 13px; transition: all 0.2s; }
#bo_v_file li a:hover { background: #f7eef4; border-color: #a33570; color: #a33570; }

/* 추천/비추천 */
#bo_v_act { text-align: center; margin: 20px 0; display: flex; justify-content: center; gap: 12px; }
#bo_v_act .btn_b03 { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #e0e0e0; background: #fff; color: #555; text-decoration: none; transition: all 0.2s; }
#bo_v_act .btn_good:hover { background: #a33570; color: #fff; border-color: #a33570; }
#bo_v_act .btn_nogood:hover { background: #555; color: #fff; border-color: #555; }

/* 하단 버튼 */
#bo_v_com_link { text-align: right; margin: 16px 0; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#bo_v_com_link a, #bo_v_com_link button {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; text-decoration: none; border: 1px solid #e0e0e0; background: #fff; color: #555;
}
#bo_v_com_link a:hover, #bo_v_com_link button:hover { border-color: #a33570; color: #a33570; }
#bo_v_com_link .btn_b02 { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
#bo_v_com_link .btn_b02:hover { background: #2d2d4e; color: #fff; border-color: #2d2d4e; }

/* 이전/다음글 */
#bo_v_nb { border-top: 1px solid #efefef; margin-top: 20px; list-style: none; padding: 0; }
#bo_v_nb li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
#bo_v_nb li:last-child { border-bottom: 0; }
.nb_tit { flex-shrink: 0; width: 50px; font-weight: 600; color: #bbb; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
#bo_v_nb a { color: #333; text-decoration: none; transition: color 0.2s; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bo_v_nb a:hover { color: #a33570; }

/* ================================
   글쓰기 - #bo_w
================================ */
#bo_w { margin-bottom: 30px; }

/* 분류 선택 */
.bo_w_select select { padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; width: 100%; max-width: 300px; background: #fff; margin-bottom: 12px; }

/* 이름/비밀번호 */
.bo_w_info { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.frm_input { padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.frm_input:focus { outline: none; border-color: #a33570; }
.half_input { width: 200px; }
.full_input { width: 100%; box-sizing: border-box; }

/* 옵션 체크박스 */
.bo_v_option { display: flex; gap: 16px; list-style: none; padding: 10px 0; margin: 0; flex-wrap: wrap; }
.bo_v_option li { display: flex; align-items: center; }
.bo_v_option label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #555; cursor: pointer; }
.bo_v_option input[type="checkbox"] + label span { display: inline-block; width: 16px; height: 16px; background: #fff; border: 1.5px solid #ddd; border-radius: 4px; transition: all 0.2s; }
.bo_v_option input[type="checkbox"]:checked + label span { background: #a33570; border-color: #a33570; }

/* 제목 */
.bo_w_tit { margin-bottom: 8px; }
#autosave_wrapper { position: relative; }
#wr_subject.full_input { padding: 12px 16px; font-size: 16px; border-radius: 8px; border: 1px solid #e0e0e0; }
#wr_subject.full_input:focus { border-color: #a33570; outline: none; }
.btn_frmline { margin-top: 8px; padding: 6px 14px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 12px; color: #888; cursor: pointer; }

/* 내용 */
.wr_content textarea { width: 100%; padding: 14px 16px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; font-family: inherit; line-height: 1.7; resize: vertical; min-height: 260px; box-sizing: border-box; }
.wr_content textarea:focus { outline: none; border-color: #a33570; }

/* 링크 */
.bo_w_link { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bo_w_link label { flex-shrink: 0; color: #a33570; font-size: 16px; }
.bo_w_link .full_input { flex: 1; }

/* 파일 첨부 */
.bo_w_flie { margin-bottom: 10px; }
.file_wr { display: flex; align-items: center; gap: 10px; }
.lb_icon { color: #a33570; font-size: 18px; cursor: pointer; }
.frm_file { flex: 1; font-size: 13px; }
.file_del { display: block; margin-top: 6px; font-size: 13px; color: #e83e8c; }

/* 글자수 */
#char_count_desc { font-size: 13px; color: #888; margin-bottom: 8px; }
#char_count_wrap { text-align: right; font-size: 12px; color: #aaa; margin-top: 4px; }
#char_count { font-weight: 700; color: #a33570; }

/* 확인/취소 버튼 */
.btn_confirm { display: flex; justify-content: center; gap: 10px; margin: 28px 0 0; }
.btn_confirm .btn_cancel {
    display: inline-flex; align-items: center; padding: 13px 32px;
    border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer;
    background: #f0f0f0; color: #555; border: 1px solid #ddd; text-decoration: none; transition: all 0.2s;
}
.btn_confirm .btn_cancel:hover { background: #e0e0e0; }
.btn_confirm .btn_submit {
    display: inline-flex; align-items: center; padding: 13px 40px;
    border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer;
    background: #a33570; color: #fff; border: 0; transition: background 0.2s;
}
.btn_confirm .btn_submit:hover { background: #8a2d5f; }
.btn_confirm .btn_submit:disabled { background: #ccc; cursor: not-allowed; }

/* ================================
   댓글 - #bo_vc
================================ */
#bo_vc { margin-top: 40px; }
#bo_vc > h2 { font-size: 16px; font-weight: 700; color: #1a1a2e; padding-bottom: 14px; border-bottom: 2px solid #1a1a2e; margin-bottom: 0; }

/* 댓글 작성 */
#bo_vc_w { background: #f9f9f9; border-radius: 10px; padding: 20px; margin: 16px 0; }
#bo_vc_w .bo_vc_w_info { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
#bo_vc_w .wr_name, #bo_vc_w .wr_password { padding: 9px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px; width: 130px; }
#bo_vc_w .wr_name:focus, #bo_vc_w .wr_password:focus { outline: none; border-color: #a33570; }
.wr_content_vc textarea { width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 80px; box-sizing: border-box; }
.wr_content_vc textarea:focus { outline: none; border-color: #a33570; }
.btn_vc { display: flex; justify-content: flex-end; margin-top: 10px; gap: 8px; }
.btn_vc_submit { padding: 10px 24px; background: #a33570; color: #fff; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn_vc_submit:hover { background: #8a2d5f; }
.btn_vc_cancel { padding: 10px 20px; background: #f0f0f0; color: #555; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; cursor: pointer; }

/* 댓글 목록 */
#bo_vc_list { list-style: none; padding: 0; margin: 0; }
#bo_vc_list li { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
#bo_vc_list li:last-child { border-bottom: 0; }
.vc_info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.vc_name { font-weight: 600; color: #222; font-size: 14px; }
.vc_date { font-size: 12px; color: #bbb; }
.vc_con { font-size: 14px; line-height: 1.75; color: #444; word-break: break-word; }
.vc_act { display: flex; gap: 6px; margin-top: 8px; }
.vc_act a, .vc_act button { padding: 4px 10px; background: none; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 12px; color: #888; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.vc_act a:hover, .vc_act button:hover { border-color: #a33570; color: #a33570; }

/* 대댓글 들여쓰기 */
.vc_reply { margin-left: 28px; background: #fafafa; border-radius: 8px; padding: 12px 16px; margin-top: 8px; }
.vc_reply_icon { color: #a33570; margin-right: 6px; font-size: 13px; }

/* ================================
   반응형
================================ */
@media (max-width: 768px) {
    .tbl_head01 thead { display: none; }
    .tbl_head01 tbody tr { display: block; padding: 12px 0; }
    .tbl_head01 tbody td { display: block; padding: 3px 0; border: 0; width: auto !important; text-align: left !important; font-size: 13px; }
    .tbl_head01 .td_datetime { color: #bbb; font-size: 12px; }
    .tbl_head01 .td_num2 { display: none !important; }
    .half_input { width: 100%; }
    .bo_w_info { flex-direction: column; }
    .btn_confirm { flex-direction: column; }
    .btn_confirm .btn_cancel, .btn_confirm .btn_submit { width: 100%; justify-content: center; }
    #bo_v_title { font-size: 18px; }
    .profile_info { flex-wrap: wrap; }
    #bo_v_com_link { justify-content: center; }
    .pg_wrap a, .pg_wrap strong { min-width: 32px; height: 32px; font-size: 12px; }
    #bo_v_nb li { flex-wrap: wrap; }
    .nb_tit { width: auto; }
}
