/* ===== 공통 게시판 뷰 (basic) ===== */

/* 전체 래퍼 */
#bo_v {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 24px;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
}

/* 헤더 */
.bv-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 32px;
}

/* 카테고리 뱃지 */
.bv-cate-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 제목 */
.bv-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin: 0 0 24px;
}

/* 메타 정보 행 */
.bv-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bv-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bv-meta-info { font-size: 14px; }

.bv-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.bv-author-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.bv-author-date i { margin-right: 4px; }
.bv-author-hit { margin-left: 12px; }

/* 헤더 수정/삭제 버튼 */
.bv-header-btns { display: flex; gap: 8px; }

.bv-btn-hd-edit,
.bv-btn-hd-del {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.bv-btn-hd-edit { color: #4b5563; }
.bv-btn-hd-edit:hover { background: #f9fafb; color: #4b5563; }
.bv-btn-hd-del { color: #ef4444; }
.bv-btn-hd-del:hover { background: #fef2f2; color: #ef4444; }

/* 본문 영역 */
#bo_v_atc {
    min-height: 300px;
    margin-bottom: 48px;
}

#bo_v_con {
    font-size: 16px;
    line-height: 1.625;
    color: #1f2937;
    word-break: break-word;
}

/* 서명 */
.bv-signature {
    margin-top: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

/* 추천/비추천 */
.bv-vote {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 64px 0;
}

#good_button,
#nogood_button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
    color: #111827;
}

.bv-vote-label {
    font-weight: 700;
    font-size: 14px;
}

#good_button strong { color: #2563eb; }
#good_button:hover { border-color: #3b82f6; color: #3b82f6; }

#nogood_button strong { color: #dc2626; }
#nogood_button:hover { border-color: #ef4444; color: #ef4444; }

/* 관련 링크 */
.bv-link-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
}

.bv-link-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bv-link-title i { color: #3b82f6; }

.bv-link-list { list-style: none; padding: 0; margin: 0; }
.bv-link-list li + li { margin-top: 12px; }

.bv-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bv-link-a {
    font-size: 14px;
    color: #4b5563;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #e5e7eb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.bv-link-a:hover { color: #2563eb; }

.bv-link-hit {
    font-size: 11px;
    color: #9ca3af;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #f3f4f6;
    white-space: nowrap;
}

/* 이전/다음 글 */
.bv-nav {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.bv-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.bv-nav-link + .bv-nav-link { border-top: 1px solid #f3f4f6; }
.bv-nav-link:hover { background: #f9fafb; }
.bv-nav-link:hover .bv-nav-subj { color: #16a34a; }

.bv-nav-dir {
    width: 64px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bv-nav-subj {
    flex: 1;
    font-size: 14px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.bv-nav-date {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* 하단 버튼 영역 */
.bv-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
}

.bv-footer-left,
.bv-footer-right {
    display: flex;
    gap: 8px;
    width: auto;
}

.bv-footer-left a,
.bv-footer-right a {
    flex: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.bv-btn-list,
.bv-btn-reply,
.bv-btn-edit2,
.bv-btn-del2 {
    border: 1px solid #d1d5db;
    color: #4b5563;
    background: #fff;
}
.bv-btn-list:hover,
.bv-btn-reply:hover,
.bv-btn-edit2:hover { background: #f3f4f6; color: #4b5563; }

/* 글쓰기 버튼 — list와 동일한 녹색 */
.bv-btn-write {
    background: var(--brand-accent, #00a862);
    color: #fff !important;
    border: 1px solid transparent;
}
.bv-btn-write:hover { background: #008f53; }

.bv-btn-del2 { border-color: #fecaca; color: #ef4444; }
.bv-btn-del2:hover { background: #fef2f2; color: #ef4444; }

/* ===== 댓글 영역 ===== */

/* 댓글 토글 버튼 */
.cmt_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    transition: background 0.2s;
}
.cmt_btn:hover { background: #f3f4f6; }
.cmt_btn .total b { color: #16a34a; }
.cmt_btn .cmt_more::after { content: '▼'; font-size: 10px; color: #9ca3af; margin-left: 4px; }
.cmt_btn.cmt_btn_op .cmt_more::after { content: '▲'; }

/* 댓글 목록 래퍼 */
#bo_vc {
    display: none;
    margin-top: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}
#bo_vc h2 { font-size: 0; height: 0; overflow: hidden; margin: 0; padding: 0; }

/* 개별 댓글 */
#bo_vc article {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
#bo_vc article:last-of-type { border-bottom: none; }

/* 프로필 이미지 */
#bo_vc .pf_img { flex-shrink: 0; }
#bo_vc .pf_img img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* 댓글 내용 래퍼 */
#bo_vc .cm_wrap { flex: 1; min-width: 0; }

/* 댓글 헤더 */
#bo_vc header {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    line-height: 1.4;
}
#bo_vc header h2 { position: absolute; font-size: 0; text-indent: -9999em; line-height: 0; overflow: hidden; }
#bo_vc .sv_member,
#bo_vc .sv_guest { font-weight: 700; font-size: 13px; color: #111827; }
.bo_vc_hdinfo {
    display: inline-block;
    font-size: 12px;
    color: #9ca3af;
}
.bo_vc_hdinfo i { margin-right: 3px; }

/* 댓글 본문 */
#bo_vc .cmt_contents {
    margin: 4px 0 0;
    line-height: 1.7;
}
#bo_vc .cmt_contents p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    word-break: break-word;
}

/* 댓글 없음 */
#bo_vc_empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* 댓글 옵션 (수정/삭제/답변) */
.bo_vl_opt {
    position: absolute;
    top: 16px;
    right: 0;
}
.btn_cm_opt {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #9ca3af;
    font-size: 14px;
}
.btn_cm_opt:hover { color: #6b7280; }

.bo_vc_act {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    min-width: 80px;
}
.bo_vc_act li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}
.bo_vc_act li a:hover { background: #f3f4f6; }

/* ===== 댓글 쓰기 폼 ===== */
#bo_vc_w,
.bo_vc_w {
    margin-top: 20px;
}
#bo_vc_w h2 { font-size: 0; height: 0; overflow: hidden; margin: 0; padding: 0; }

#bo_vc_w textarea#wr_content {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}
#bo_vc_w textarea#wr_content:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,106,0.1);
}

#char_cnt {
    display: inline-block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.bo_vc_w_wr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.bo_vc_w_info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bo_vc_w_info input[type="text"],
.bo_vc_w_info input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.btn_confirm {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 비밀글 체크박스 */
.secret_cm { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #6b7280; }
.secret_cm input[type="checkbox"] { margin: 0; }

/* 댓글등록 버튼 */
.btn_submit {
    padding: 9px 20px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn_submit:hover { background: #15803d; }
.btn_submit:disabled { background: #9ca3af; cursor: not-allowed; }