@charset "utf-8";

/* ============================================
   고급스러운 갤러리 스킨 스타일
   ============================================ */

/* 기본 리셋 및 변수 */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #6c757d;
    --accent-color: #ff3061;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 게시판 기본 스타일 */
#bo_gall {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 카테고리 */
#bo_cate {
    margin: 25px 0 40px;
    padding: 0;
}

#bo_cate h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#bo_cate li {
    display: inline-block;
}

#bo_cate a {
    display: block;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    background: var(--bg-white);
}

#bo_cate a:focus,
#bo_cate a:hover,
#bo_cate a:active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#bo_cate #bo_cate_on {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* 체크박스 스타일 */
.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: 25px;
    color: var(--text-light);
    vertical-align: baseline;
    cursor: pointer;
    transition: var(--transition);
}

.chk_box input[type="checkbox"] + label:hover {
    color: var(--primary-color);
}

.chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 18px;
    height: 18px;
    display: block;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.chk_box input[type="checkbox"]:checked + label {
    color: var(--text-dark);
}

.chk_box input[type="checkbox"]:checked + label span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url(./img/chk.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.all_chk.chk_box input[type="checkbox"] + label span {
    top: 0;
    left: 0;
}

/* 갤러리 목록 */
#bo_gall h2 {
    margin: 0;
    padding: 0;
    width: 1px;
    height: 1px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_gall #gall_ul {
    margin: 30px -15px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#bo_gall .gall_li {
    position: relative;
    padding: 0 15px;
    margin-bottom: 30px;
}

#bo_gall .gall_li .gall_chk {
    position: absolute;
    top: 15px;
    left: 25px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

/* 갤러리 박스 - 카드 스타일 */
#bo_gall .gall_box {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#bo_gall .gall_box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

#bo_gall .gall_con {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 이미지 래퍼 */
.gall_img_wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gall_img {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 비율 */
    overflow: hidden;
    border-radius: 0;
}

.gall_img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.gall_img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gall_box:hover .gall_img img {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 오버레이 효과 */
.gall_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
}

.gall_box:hover .gall_overlay {
    opacity: 1;
}

.gall_overlay_content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.gall_overlay .new_icon {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gall_overlay .overlay_cmt {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 14px;
}

.gall_overlay .overlay_cmt i {
    font-size: 16px;
}

/* 공지사항 배지 */
.gall_img .is_notice {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e01e5a 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

/* 이미지 없음 */
.gall_img .no_image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-lighter);
    font-size: 14px;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
}

.gall_img .no_image i {
    font-size: 48px;
    opacity: 0.3;
}

/* 갤러리 콘텐츠 */
.gall_content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gall_text_href {
    margin-bottom: 15px;
    flex: 1;
}

.bo_cate_link {
    display: inline-block;
    background: linear-gradient(135deg, #e2eaf6 0%, #d4e1f5 100%);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
}

.bo_cate_link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    transform: translateY(-1px);
}

.bo_tit {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bo_tit:hover {
    color: var(--primary-color);
}

.bo_tit .fa-lock {
    color: var(--text-lighter);
    margin-left: 5px;
    font-size: 12px;
}

.bo_cnt {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 갤러리 정보 */
.gall_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
    margin-top: auto;
}

.gall_author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 13px;
}

.gall_author i {
    color: var(--primary-color);
    font-size: 12px;
}

.gall_meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-lighter);
    font-size: 12px;
}

.gall_meta i {
    margin-right: 4px;
    font-size: 11px;
}

.gall_date,
.gall_view {
    display: flex;
    align-items: center;
}

/* 갤러리 옵션 (추천/비추천) */
.gall_option {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-light);
}

.option_good,
.option_nogood {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.option_good {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.option_good:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: translateY(-1px);
}

.option_nogood {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.option_nogood:hover {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    transform: translateY(-1px);
}

.option_good i,
.option_nogood i {
    font-size: 13px;
}

/* 새글 아이콘 */
.new_icon {
    display: inline-block;
    background: linear-gradient(135deg, #23db79 0%, #1bc96a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* 핫 아이콘 */
.hot_icon {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e01e5a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* 댓글 카운트 */
.cnt_cmt {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 현재 열람중 */
#bo_gall .gall_now .bo_tit {
    color: var(--accent-color);
}

/* 빈 목록 */
#bo_gall li.empty_list {
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    color: var(--text-lighter);
    font-size: 16px;
}

/* 그리드 시스템 */
.gall_row .col-gn-0,
.gall_row .col-gn-1,
.gall_row .col-gn-2,
.gall_row .col-gn-3,
.gall_row .col-gn-4,
.gall_row .col-gn-5,
.gall_row .col-gn-6,
.gall_row .col-gn-7,
.gall_row .col-gn-8,
.gall_row .col-gn-9,
.gall_row .col-gn-10 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
    box-sizing: border-box;
}

.gall_row .col-gn-0,
.gall_row .col-gn-1 {
    width: 100%;
}

.gall_row .col-gn-2 {
    width: 50%;
}

.gall_row .col-gn-3 {
    width: 33.33333333%;
}

.gall_row .col-gn-4 {
    width: 25%;
}

.gall_row .col-gn-5 {
    width: 20%;
}

.gall_row .col-gn-6 {
    width: 16.66666667%;
}

.gall_row .col-gn-7 {
    width: 14.28571428%;
}

.gall_row .col-gn-8 {
    width: 12.5%;
}

.gall_row .col-gn-9 {
    width: 11.11111111%;
}

.gall_row .col-gn-10 {
    width: 10%;
}

.gall_row .box_clear {
    clear: both;
}

/* 게시판 버튼 영역 */
#bo_btn_top {
    margin: 20px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#bo_list_total {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

#bo_list_total span {
    color: var(--primary-color);
    font-weight: 600;
}

.btn_bo_user {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn_bo_user li {
    position: relative;
}

.btn_bo_user .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.btn_bo_user .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 검색 영역 */
.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-white);
    text-align: left;
    width: 400px;
    max-height: 300px;
    margin-left: -200px;
    margin-top: -150px;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.bo_sch h3 {
    padding: 20px;
    border-bottom: 1px solid var(--bg-light);
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
}

.bo_sch form {
    padding: 20px;
}

.bo_sch select {
    width: 100%;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0 15px;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

.bo_sch select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.bo_sch .sch_bar {
    display: flex;
    width: 100%;
    margin-top: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.bo_sch .sch_bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.bo_sch .sch_input {
    flex: 1;
    height: 45px;
    border: 0;
    padding: 0 15px;
    background: transparent;
    font-size: 14px;
    color: var(--text-dark);
}

.bo_sch .sch_input:focus {
    outline: none;
}

.bo_sch .sch_btn {
    width: 50px;
    height: 45px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.bo_sch .sch_btn:hover {
    background: var(--primary-hover);
}

.bo_sch .bo_sch_cls {
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--text-lighter);
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.bo_sch .bo_sch_cls:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.bo_sch_bg {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
}

/* 더보기 옵션 */
.more_opt {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 999;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-width: 150px;
}

.more_opt:before {
    content: "";
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent var(--border-color) transparent;
}

.more_opt:after {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent var(--bg-white) transparent;
}

.more_opt li {
    border-bottom: 1px solid var(--bg-light);
    padding: 0;
    margin: 0;
}

.more_opt li:last-child {
    border-bottom: 0;
}

.more_opt li button,
.more_opt li a {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-light);
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-size: 14px;
}

.more_opt li:hover button,
.more_opt li:hover a {
    background: var(--bg-light);
    color: var(--primary-color);
}

.more_opt li i {
    margin-left: 10px;
    font-size: 12px;
}

/* 하단 버튼 영역 */
.bo_fx {
    margin: 30px 0;
    display: flex;
    justify-content: flex-end;
}

/* 반응형 디자인 */
@media screen and (max-width: 1200px) {
    .gall_row .col-gn-4 {
        width: 33.33333333%;
    }
}

@media screen and (max-width: 960px) {
    #bo_gall {
        padding: 15px;
    }

    .gall_row .col-gn-3,
    .gall_row .col-gn-4 {
        width: 50%;
    }

    .gall_img {
        padding-top: 70%;
    }

    .gall_content {
        padding: 15px;
    }

    .bo_tit {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    #bo_gall {
        padding: 10px;
    }

    #bo_gall #gall_ul {
        margin: 20px -10px 0;
    }

    #bo_gall .gall_li {
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .gall_row .col-gn-2,
    .gall_row .col-gn-3,
    .gall_row .col-gn-4 {
        width: 50%;
    }

    .gall_img {
        padding-top: 75%;
    }

    .gall_content {
        padding: 12px;
    }

    .bo_tit {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .bo_cnt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .gall_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 12px;
    }

    .gall_meta {
        width: 100%;
        justify-content: space-between;
    }

    #bo_btn_top {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn_bo_user {
        width: 100%;
        justify-content: flex-start;
    }

    .bo_sch {
        width: 90%;
        margin-left: -45%;
    }
}

@media screen and (max-width: 600px) {
    .gall_row .col-gn-2,
    .gall_row .col-gn-3,
    .gall_row .col-gn-4 {
        width: 100%;
    }

    .gall_img {
        padding-top: 75%;
    }

    .gall_overlay {
        padding: 15px;
    }

    .gall_overlay_content {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gall_option {
        flex-direction: column;
        gap: 8px;
    }

    .option_good,
    .option_nogood {
        width: 100%;
        justify-content: center;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gall_li {
    animation: fadeInUp 0.5s ease-out;
}

.gall_li:nth-child(1) { animation-delay: 0.05s; }
.gall_li:nth-child(2) { animation-delay: 0.1s; }
.gall_li:nth-child(3) { animation-delay: 0.15s; }
.gall_li:nth-child(4) { animation-delay: 0.2s; }
.gall_li:nth-child(5) { animation-delay: 0.25s; }
.gall_li:nth-child(6) { animation-delay: 0.3s; }

/* 기타 스타일 */
.bo_current {
    color: var(--accent-color);
    font-weight: 600;
}

.td_subject img {
    margin-left: 3px;
}

/* ============================================
   게시판 읽기 (View) 스타일
   ============================================ */

#bo_v {
    max-width: 1200px;
    margin: 0 auto 40px;
    background: var(--bg-white);
    box-sizing: border-box;
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* 제목 영역 */
#bo_v header {
    padding: 40px 40px 30px;
    border-bottom: 2px solid var(--bg-light);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

#bo_v_title {
    margin: 0;
    padding: 0;
}

.bo_v_cate {
    display: inline-block;
    background: linear-gradient(135deg, #e2eaf6 0%, #d4e1f5 100%);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bo_v_tit {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 15px 0 0;
    word-break: break-word;
}

/* 작성자 정보 영역 */
#bo_v_info {
    padding: 30px 40px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-light);
    position: relative;
}

#bo_v_info h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.profile_info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pf_img {
    flex-shrink: 0;
}

.pf_img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    object-fit: cover;
    transition: var(--transition);
}

.pf_img:hover img {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.profile_info_ct {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile_info_ct strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile_info_ct strong a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.profile_info_ct strong a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.profile_info_ct strong i {
    color: var(--primary-color);
    font-size: 14px;
}

.if_date {
    color: var(--text-lighter);
    font-size: 14px;
    font-weight: 400;
}

.if_date i {
    margin-right: 5px;
}

/* 상단 버튼 */
#bo_v_top {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

.bo_v_com {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bo_v_com li {
    position: relative;
}

.bo_v_com .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.bo_v_com .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 본문 영역 */
#bo_v_atc {
    padding: 40px;
    min-height: 200px;
}

#bo_v_atc_title {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* 공유 및 스크랩 */
#bo_v_share {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#bo_v_share .btn {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#bo_v_share .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#bo_v_share .btn i {
    font-size: 16px;
}

/* 이미지 영역 */
#bo_v_img {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

#bo_v_img a.view_image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: var(--transition);
}

#bo_v_img a.view_image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

#bo_v_img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: var(--transition);
}

#bo_v_img a.view_image:hover img {
    transform: scale(1.05);
}

/* 본문 내용 */
#bo_v_con {
    margin: 30px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-dark);
    word-break: break-word;
    min-height: 200px;
}

#bo_v_con p {
    margin: 0 0 20px;
}

#bo_v_con p:last-child {
    margin-bottom: 0;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

#bo_v_con a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

#bo_v_con a:hover {
    color: var(--primary-hover);
}

#bo_v_con h1,
#bo_v_con h2,
#bo_v_con h3,
#bo_v_con h4,
#bo_v_con h5,
#bo_v_con h6 {
    margin: 30px 0 15px;
    color: var(--text-dark);
    font-weight: 600;
}

#bo_v_con ul,
#bo_v_con ol {
    margin: 15px 0;
    padding-left: 30px;
}

#bo_v_con li {
    margin: 8px 0;
}

#bo_v_con blockquote {
    margin: 20px 0;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-white);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-light);
}

#bo_v_con code {
    background: var(--bg-white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent-color);
}

#bo_v_con pre {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

#bo_v_con table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

#bo_v_con table th,
#bo_v_con table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

#bo_v_con table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

/* 추천/비추천 */
#bo_v_act {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bo_v_act_gng {
    position: relative;
}

.bo_v_good,
.bo_v_nogood {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.bo_v_good {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-color: #a5d6a7;
}

.bo_v_good:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: #81c784;
}

.bo_v_nogood {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-color: #ef9a9a;
}

.bo_v_nogood:hover {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: #e57373;
}

.bo_v_good i,
.bo_v_nogood i {
    font-size: 18px;
}

.bo_v_good strong,
.bo_v_nogood strong {
    font-size: 18px;
    margin-left: 5px;
}

#bo_v_act_good,
#bo_v_act_nogood {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

#bo_v_act_good:before,
#bo_v_act_nogood:before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: var(--text-dark) transparent transparent transparent;
}

/* 첨부파일 */
#bo_v_file {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

#bo_v_file h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_file ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#bo_v_file li {
    padding: 20px;
    margin: 15px 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

#bo_v_file li:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

#bo_v_file li i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

#bo_v_file a {
    flex: 1;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

#bo_v_file a:hover {
    color: var(--primary-color);
}

#bo_v_file a strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

#bo_v_file a:hover strong {
    color: var(--primary-color);
}

.bo_v_file_cnt {
    display: block;
    color: var(--text-lighter);
    font-size: 13px;
    margin-top: 8px;
}

/* 관련링크 */
#bo_v_link {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

#bo_v_link h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_link ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#bo_v_link li {
    padding: 20px;
    margin: 15px 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

#bo_v_link li:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

#bo_v_link li i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

#bo_v_link a {
    flex: 1;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

#bo_v_link a:hover {
    color: var(--primary-color);
}

#bo_v_link a strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

#bo_v_link a:hover strong {
    color: var(--primary-color);
}

.bo_v_link_cnt {
    display: block;
    color: var(--text-lighter);
    font-size: 13px;
    margin-top: 8px;
}

/* 이전/다음글 */
.bo_v_nb {
    margin: 40px 0;
    padding: 0;
    list-style: none;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.bo_v_nb li {
    padding: 20px 25px;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bo_v_nb li:last-child {
    border-bottom: 0;
}

.bo_v_nb li:hover {
    background: var(--bg-light);
    padding-left: 30px;
}

.bo_v_nb .nb_tit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.bo_v_nb .nb_tit i {
    color: var(--primary-color);
    font-size: 12px;
}

.bo_v_nb a {
    flex: 1;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo_v_nb a:hover {
    color: var(--primary-color);
}

.bo_v_nb .nb_date {
    color: var(--text-lighter);
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 15px;
}

/* 반응형 - View 화면 */
@media screen and (max-width: 768px) {
    #bo_v {
        margin: 0 10px 30px;
        border-radius: 16px;
    }

    #bo_v header {
        padding: 25px 20px 20px;
    }

    .bo_v_tit {
        font-size: 22px;
    }

    #bo_v_info {
        padding: 20px;
    }

    .profile_info {
        flex-direction: column;
        align-items: flex-start;
    }

    #bo_v_atc {
        padding: 25px 20px;
    }

    #bo_v_con {
        padding: 20px;
        font-size: 15px;
    }

    #bo_v_act {
        padding: 20px;
        flex-direction: column;
    }

    .bo_v_good,
    .bo_v_nogood {
        width: 100%;
        justify-content: center;
    }

    #bo_v_file,
    #bo_v_link {
        padding: 20px;
    }

    #bo_v_file li,
    #bo_v_link li {
        flex-direction: column;
        gap: 10px;
    }

    .bo_v_nb li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bo_v_nb a {
        text-align: left;
        white-space: normal;
    }

    .bo_v_nb .nb_date {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* 게시판 쓰기 스타일 (기본 유지) */
#bo_w {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
