@charset "utf-8";

/* 디시인사이드 스타일 - 심플하고 깔끔한 게시판 */

/* 전체 레이아웃 */
#bo_list {
    position: relative;
    margin-bottom: 20px;
    font-family: "Malgun Gothic", sans-serif;
    background: #fff;
}

/* 카테고리 */
#bo_cate {
    margin: 10px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
#bo_cate ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#bo_cate li {
    display: inline-block;
    margin-right: 10px;
}
#bo_cate a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    background: #f9f9f9;
}
#bo_cate a:hover, #bo_cate a:focus, #bo_cate #bo_cate_on {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 상단 버튼 영역 */
#bo_btn_top {
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 2px solid #333;
    overflow: hidden;
}
#bo_list_total {
    float: left;
    line-height: 30px;
    color: #666;
    font-size: 13px;
}
.btn_bo_user {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
}
.btn_bo_user li {
    float: left;
    margin-left: 5px;
}
.btn_bo_user a, .btn_bo_user button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    min-height: 30px;
}
.btn_bo_user a:hover, .btn_bo_user button:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 버튼 아이콘 간격 */
.btn i, .btn_bo_user a i, .btn_bo_user button i {
    margin-right: 3px;
}
.btn i:only-child, .btn_bo_user a i:only-child, .btn_bo_user button i:only-child {
    margin-right: 0;
}

/* 게시판 테이블 */
.tbl_wrap {
    border: 1px solid #ddd;
    border-bottom: 0;
    background: #fff;
}
.tbl_wrap table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
.tbl_wrap thead th {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 10px 8px;
    font-size: 12px;
    color: #333;
    text-align: center;
    font-weight: bold;
}
.tbl_wrap tbody td {
    border-bottom: 1px solid #eee;
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
}

/* 테이블 셀 너비 조정 */
.td_chk { width: 30px; text-align: center; }
.td_num2 { width: 60px; text-align: center; }
.td_subject { text-align: left; padding-left: 10px; }
.td_name { width: 100px; text-align: center; }
.td_num { width: 60px; text-align: center; }
.td_datetime { width: 80px; text-align: center; color: #999; }

/* 공지사항 스타일 */
.bo_notice td {
    background: #fffbf0 !important;
    font-weight: bold;
}
.notice_icon {
    color: #d73502;
    font-weight: bold;
}

/* 제목 링크 */
.bo_tit a {
    color: #333;
    text-decoration: none;
}
.bo_tit a:hover {
    text-decoration: underline;
}

/* 분류와 제목 inline-block 배치 */
.subject_container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bo_cate_badge {
    display: inline-block;
    background: transparent;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.bo_cate_badge:hover {
    border-color: #333;
    color: #333;
}

/* 새글, 댓글 표시 */
.new_icon {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    font-size: 10px;
    padding: 1px 3px;
    margin-left: 3px;
    font-weight: bold;
    vertical-align: top;
}
.cnt_cmt {
    color: #999;
    font-size: 11px;
    margin-left: 3px;
}

/* 체크박스 */
.chk_box input[type="checkbox"] {
    margin: 0;
}

/* 페이지네이션 */
.pg_wrap {
    text-align: center;
    margin: 20px 0;
}

/* 검색 폼 */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
}
.bo_sch h3 {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 14px;
}
.bo_sch select, .bo_sch input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
.bo_sch button {
    padding: 8px 15px;
    background: #333;
    color: #fff;
    border: 0;
    cursor: pointer;
}
.bo_sch_cls {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: 0;
    font-size: 16px;
    cursor: pointer;
    width: auto;
}
.sch_bar {
    position: relative;
}
.sch_input {
    width: 250px !important;
    display: inline-block;
    margin-bottom: 0 !important;
}
.sch_btn {
    position: absolute;
    right: 0;
    top: 0;
    margin-bottom: 0 !important;
    width: 40px !important;
}
.bo_sch_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 글쓰기/읽기 공통 */
#bo_v {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

/* 게시글 제목 */
#bo_v_title {
    background: #f8f8f8;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.title_container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bo_v_tit {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    display: inline-block;
}
.bo_v_cate {
    display: inline-block;
    background: transparent;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 게시글 정보 */
#bo_v_info {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #666;
    overflow: hidden;
}
.profile_info {
    display: block;
    float: left;
}
.pf_img {
    display: none;
}
.profile_info_ct {
    float: left;
}
.bo_v_com {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bo_v_com li {
    float: left;
    margin-left: 5px;
}

/* 게시글 내용 */
#bo_v_con {
    padding: 20px 15px;
    line-height: 1.6;
    color: #333;
    min-height: 200px;
}

/* 댓글 */
#bo_vc {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    display: block !important; /* 강제 표시 */
    background: #fff;
    min-height: 50px;
    position: relative;
    z-index: 1;
}
.cmt_btn {
    background: #f8f8f8;
    border: 0;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}
.cmt_btn:hover {
    background: #eee;
}
.cmt_btn.cmt_btn_op {
    background: #e8f4fd;
    border-bottom-color: #0066cc;
}
.cmt_btn .total {
    font-size: 14px;
    color: #333;
}
.cmt_more {
    float: right;
    font-size: 12px;
    color: #999;
}
.cmt_more {
    float: right;
    font-size: 12px;
    color: #999;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.05);
}
#bo_vc article {
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
    position: relative;
    background: #fff;
    overflow: hidden;
    min-height: 60px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
/* 답글 들여쓰기 스타일 */
#bo_vc article[style*="margin-left"] {
    background: #fafafa;
    border-left: 2px solid #e0e0e0;
    margin-top: 0;
    box-sizing: border-box;
    padding-right: 15px;
}
#bo_vc article .pf_img {
    display: none; /* 프로필 이미지 숨김 */
}

/* 빈 댓글 메시지 */
.empty_comment {
    text-align: center;
    padding: 30px 15px;
    color: #999;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.empty_comment p {
    margin: 0;
    font-size: 14px;
}

/* 댓글 영역 기본 스타일 */
#bo_vc h2 {
    display: none; /* 댓글목록 제목 숨김 */
}

#bo_vc {
    width: 100%;
    clear: both;
}
.cm_wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: block;
    clear: both;
}

/* 댓글 헤더 새로운 스타일 */
.cmt_header {
    margin: 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 10px;
}
.cmt_info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.cmt_name {
    font-weight: bold;
    color: #333;
}
.cmt_ip {
    color: #999;
    font-size: 11px;
}
.cmt_date {
    color: #999;
    font-size: 11px;
    /*margin-left: auto; /* 오른쪽 정렬 */
}

/* 댓글 내용 */
.cmt_contents {
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 8px 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 20px;
    display: block;
}
.cmt_contents p {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    display: block;
    min-height: 40px;
}

/* 댓글 옵션 메뉴 기본 숨김 */
.bo_vc_act {
    display: none; /* 기본 숨김 처리 */
    position: absolute;
    top: 25px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 60px;
}
.bo_vc_act li {
    border-bottom: 1px solid #eee;
    margin: 0;
    float: none;
    width: auto;
}
.bo_vc_act li:last-child {
    border-bottom: 0;
}
.bo_vc_act a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}
.bo_vc_act a:hover {
    background: #f5f5f5;
    color: #333;
}
.bo_vl_opt {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}
.btn_cm_opt {
    background: transparent;
    border: 0;
    padding: 4px 6px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}
.btn_cm_opt:hover {
    color: #666;
}
.btn_cm_opt i {
    font-size: 12px;
}

/* 댓글 작성 */
.bo_vc_w {
    padding: 15px;
    background: #f9f9f9;
    /* border-top: 1px solid #ddd; */
    /* margin-top: 10px; */
}
.bo_vc_w h2 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #333;
}
.bo_vc_w textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
}
.bo_vc_w_wr {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bo_vc_w_info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.secret_cm {
    margin: 0;
}
.btn_confirm {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn_submit {
    background: #333;
    color: #fff;
    border: 0;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}
.btn_submit:hover {
    background: #555;
}
#char_cnt {
    color: #999;
    font-size: 11px;
    margin-bottom: 5px;
    display: block;
    border-top: 1px solid #ddd;
}
/* 중복 제거됨 - 위에서 이미 정의함 */

/* 댓글 작성 폼 정보 */
.bo_vc_w_info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.bo_vc_w_info .frm_input {
    flex: 1;
    min-width: 150px;
}
.bo_vc_w_info label {
    margin-right: 8px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* 글쓰기 */
#bo_w {
    background: #fff;
    border: 1px solid #ddd;
}
.write_div {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
.write_div:last-child {
    border-bottom: 0;
}

/* 버튼 컨테이너 정렬 */
.btn_confirm {
    text-align: right;
    padding: 15px 0;
    overflow: hidden;
}
.btn_confirm .btn {
    margin-left: 5px;
    vertical-align: middle;
}

/* 폼 요소들 */
.frm_input {
    padding: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    vertical-align: middle;
}
.full_input { width: 100%; }
.half_input { width: 48%; margin-right: 2%; float: left; }
.half_input:nth-child(even) { margin-right: 0; }

/* 라벨과 인풋 나란히 배치 */
.bo_w_info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.bo_w_info .frm_input {
    flex: 1;
    min-width: 200px;
}
.bo_w_info label {
    margin-right: 8px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* 개별 입력 필드들 */
.bo_w_info > * {
    margin-bottom: 5px;
}

/* 버튼 공통 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    min-height: 32px;
    vertical-align: middle;
}
.btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}
.btn_cancel {
    background: #999;
    color: #fff;
    border-color: #999;
}
.btn_cancel:hover {
    background: #777;
}

/* 이전글/다음글 */
.bo_v_nb {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bo_v_nb li {
    border-bottom: 1px solid #eee;
    padding: 8px 15px;
    font-size: 12px;
    overflow: hidden;
}
.bo_v_nb a {
    color: #333;
    text-decoration: none;
}
.bo_v_nb a:hover {
    text-decoration: underline;
}
.nb_tit {
    color: #999;
    margin-right: 10px;
}
.nb_date {
    float: right;
    color: #999;
}

/* 더 옵션 메뉴 */
.more_opt {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 100;
    min-width: 80px;
}
.more_opt li {
    margin: 0;
    float: none;
    border-bottom: 1px solid #eee;
    width: auto;
}
.more_opt li:last-child {
    border-bottom: 0;
}
.more_opt a, .more_opt button {
    display: block;
    padding: 8px 12px;
    background: none;
    border: 0;
    color: #666;
    text-decoration: none;
    width: 100%;
    text-align: left;
}
.more_opt a:hover, .more_opt button:hover {
    background: #f5f5f5;
    color: #333;
}

/* 빈 테이블 메시지 */
.empty_table {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

/* 체크박스 스타일 개선 */
.selec_chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.chk_box label span {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 1px solid #ddd;
    background: #fff;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
}
.chk_box input[type="checkbox"]:checked + label span {
    background: #333;
    border-color: #333;
}
.chk_box input[type="checkbox"]:checked + label span:after {
    content: "✓";
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 0;
    left: 2px;
}

/* 임시저장 팝업 스타일 */
#autosave_wrapper {
    position: relative;
}
#btn_autosave {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    font-size: 11px;
    cursor: pointer;
}
#btn_autosave:hover {
    background: #333;
    color: #fff;
}
#autosave_pop {
    display: none; /* 기본 숨김 */
    position: absolute;
    top: 35px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    z-index: 1000;
}
#autosave_pop strong {
    display: block;
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #333;
}
#autosave_pop ul {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}
#autosave_pop li {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    font-size: 12px;
    overflow: hidden;
}
#autosave_pop li:last-child {
    border-bottom: 0;
}
#autosave_pop a {
    float: left;
    color: #333;
    text-decoration: none;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#autosave_pop span {
    float: right;
    color: #999;
    font-size: 10px;
}
.autosave_close {
    width: 100%;
    padding: 10px;
    background: #f8f8f8;
    border: 0;
    border-top: 1px solid #eee;
    color: #666;
    cursor: pointer;
}
.autosave_close:hover {
    background: #eee;
    color: #333;
}

/* 추천/비추천 시스템 */
.vote_system {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    text-align: center;
}

.vote_container {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.vote_item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.vote_btn_good {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.vote_btn_good:hover {
    background: #357ABD;
    border-color: #357ABD;
    transform: scale(1.05);
}

.vote_btn_bad {
    background: #999;
    color: white;
    border-color: #999;
}

.vote_btn_bad:hover {
    background: #777;
    border-color: #777;
    transform: scale(1.05);
}

.vote_btn_disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

.vote_icon {
    font-size: 11px;
    margin-bottom: 2px;
}

.vote_count {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.vote_label {
    font-size: 10px;
    margin-top: 5px;
    color: #e7e7e7;
    font-weight: normal;
}

.vote_message {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    z-index: 1000;
}

.vote_message:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .vote_container {
        gap: 10px;
    }
    
    .vote_btn {
        width: 50px;
        height: 50px;
    }
    
    .vote_icon {
        font-size: 14px;
    }
    
    .vote_count {
        font-size: 12px;
    }
    
    .vote_label {
        font-size: 9px;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .td_name, .td_num, .td_datetime {
        display: none;
    }
    .td_subject {
        padding-left: 5px;
    }
    #bo_btn_top {
        text-align: center;
    }
    #bo_list_total, .btn_bo_user {
        float: none;
        display: block;
        text-align: center;
        margin: 5px 0;
    }
    .half_input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .bo_sch {
        width: 90%;
        max-width: 300px;
    }
    #autosave_pop {
        width: 90%;
        max-width: 280px;
    }
}

[id^="edit_"] {
    padding: 0;
}

[id^="reply_"] {
    padding: 0;
}