@charset "utf-8";

/* --- 변수 및 공통 --- */
:root {
    --main-color: #ff421d;
    --text-color: #333;
    --gray-text: #888;
    --border-color: #eee;
    --swiper-theme-color: #ff421d !important;
}
 
/* 게시판 전체 래퍼 */
#bo_list, #bo_v, #bo_w { max-width: 800px; margin: 0 auto;   background:#fff; }

#bo_v{ padding:0 10px 50px;}
/* --- 1. 리스트 페이지 (list.skin.php) --- */
.review_head { padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.review_head h2 { margin: 0; font-size: 1.1rem; font-weight: bold; }
.btn_write_circle { color: var(--main-color); font-size: 1.8rem; text-decoration: none; display: flex; align-items: center; }

/* 검색창 */
.review_search { padding: 0 15px 15px; }
.sch_inner { position: relative; border: 1px solid var(--main-color); border-radius: 8px; overflow: hidden; display: flex; }
.sch_input { width: 100%; border: none; padding: 12px; font-size: 1rem; outline: none; }
.sch_btn { background: #fff; border: none; padding: 0 15px; color: var(--main-color); cursor: pointer; font-size: 1.2rem; }

/* 리스트 아이템 */
.review_list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-color); }
.review_item { display: flex; justify-content: space-between; padding: 20px 15px; border-bottom: 1px solid var(--border-color); gap: 15px; cursor: pointer; }
.rv_content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.rv_writer { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: #555; margin-bottom: 5px; }
.rv_writer img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.rv_subject { 
    font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; color: #333; 
    /* 2줄 말줄임 */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}

.rv_meta { font-size: 0.8rem; color: var(--gray-text); display: flex; gap: 10px; align-items: center; }
.rv_meta i { margin-right: 3px; }
.rv_heart { color: var(--main-color); }

.rv_thumb { width: 110px; height: 80px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.rv_thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- 2. 뷰 페이지 (view.skin.php) --- */
.view_wrap { padding: 20px; }
.v_head { margin-bottom: 20px; border-bottom: 2px solid var(--main-color); padding-bottom: 15px; }
.v_title { font-size: 1.4rem; font-weight: bold; color: var(--main-color); margin-bottom: 10px; }
.v_info { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #666; }
.v_profile { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.v_profile img { width: 100%; height: 100%; object-fit: cover; }

.v_content { font-size: 1rem; line-height: 1.6; color: #333; min-height: 200px; margin-bottom: 30px; }
.v_content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }

.v_action { display: flex; justify-content: space-around; padding: 15px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.btn_action { background: none; border: none; font-size: 1rem; color: #555; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.btn_action.active { color: var(--main-color); font-weight: bold; }

/* --- 3. 글쓰기 페이지 (write.skin.php) --- */
.write_wrap { padding: 20px; }
.w_group { margin-bottom: 25px; }
.w_label { display: block; font-size: 1.2rem; font-weight: bold; color: var(--main-color); margin-bottom: 10px; border-bottom: 2px solid var(--main-color); display: inline-block; padding-bottom: 5px;}
.w_desc { font-size: 0.9rem; color: #888; margin-bottom: 15px; line-height: 1.4; }

.w_input { width: 100%; border: none; border-bottom: 1px solid #ddd; padding: 10px 0; font-size: 1.1rem; outline: none; }
.w_textarea { width: 100%; border: none; height: 200px; font-size: 1rem; outline: none; resize: none; }

/* 커스텀 파일 업로드 */
.file_upload_box { display: flex; gap: 10px; flex-wrap: wrap; }
.file_btn { 
    width: 100px; height: 100px; border: 1px solid var(--main-color); border-radius: 15px; 
    display: flex; justify-content: center; align-items: center; cursor: pointer; background: #fff; 
}
.file_icon { font-size: 2rem; color: var(--main-color); font-weight: lighter; }
.preview_img { width: 100px; height: 100px; border-radius: 15px; object-fit: cover; display: none; border:1px solid #ddd; }

.btn_submit_area { margin-top: 30px; }
.btn_submit { width: 100%; background: var(--main-color); color: #fff; padding: 15px; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }

/* 반응형 모바일 최적화 */
@media (max-width: 480px) {
    .rv_thumb { width: 90px; height: 70px; }
    .rv_subject { font-size: 1rem; }
}

 

/* --- 댓글 (Comment) 스타일 --- */

/* 1. 댓글 리스트 영역 */
#bo_vc { 
    margin-top: 30px; 
    border-top: 1px solid var(--border-color); 
    padding-top: 10px; 
}
#bo_vc h2 { display: none; } /* '댓글목록' 텍스트 숨김 */

#bo_vc article { 
    padding: 20px 0; 
    border-bottom: 1px solid #f9f9f9; 
    position: relative; 
}
#bo_vc article:last-child { border-bottom: none; }

/* 작성자 정보 헤더 */
#bo_vc header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    font-size: 0.9rem;
}
#bo_vc .member, #bo_vc .guest { 
    font-weight: bold; 
    color: #333; 
    display: flex; 
    align-items: center; 
    gap: 5px;
}
/* 프로필 이미지가 있다면 둥글게 */
#bo_vc .member img { 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid #eee;
}

#bo_vc .icon_reply { 
    margin-right: 5px; 
    color: var(--main-color); 
} /* 대댓글 아이콘 */

#bo_vc time { 
    color: #999; 
    font-size: 0.8rem; 
    margin-left: 10px; 
    font-weight: normal; 
}

/* 댓글 본문 */
#bo_vc p { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: #444; 
    margin: 0; 
    word-break: break-all; /* 긴 단어 줄바꿈 */
}
#bo_vc p img { max-width: 100%; border-radius: 5px; margin-top: 5px; }

/* 댓글 수정/삭제/답글 버튼 */
.bo_vc_act { 
    margin-left: auto; /* 우측 정렬 */
    display: flex; 
    gap: 8px; 
}
.bo_vc_act a { 
    font-size: 0.8rem; 
    color: #999; 
    text-decoration: none; 
    padding: 2px 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s;
}
.bo_vc_act a:hover { 
    color: var(--main-color); 
    border-color: var(--main-color); 
}

/* 2. 댓글 입력 폼 (글쓰기) */
#bo_vc_w { 
    margin-top: 20px; 
    background: #f8f8fb; /* 연한 보라빛 회색 */
    padding: 15px; 
    border-radius: 12px; 
    position: relative;
}
#bo_vc_w h2 { display: none; }

/* 입력창 */
#bo_vc_w textarea { 
    width: 100%; 
    height: 80px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 12px; 
    font-size: 0.95rem; 
    outline: none; 
    resize: none; 
    box-sizing: border-box;
    background: #fff;
    transition: border 0.3s;
}
#bo_vc_w textarea:focus { 
    border-color: var(--main-color); 
}

/* 비밀댓글 체크박스 등 하단 옵션 */
.bo_vc_w_wr { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 10px; 
}

/* 게시하기 버튼 */
.btn_confirm .btn_submit { 
    background: var(--main-color); 
    color: #fff; 
    border: none; 
    padding: 8px 20px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background 0.3s;
}
.btn_confirm .btn_submit:hover { 
    background: #5a57d6; 
}

/* 모바일 댓글 조정 */
@media (max-width: 480px) {
    #bo_vc article { padding: 15px 0; }
    #bo_vc_w { padding: 10px; }
    .bo_vc_act a { font-size: 0.75rem; padding: 2px 4px; }
}



/* --- 댓글 토글 버튼 스타일 --- */
.cmt_toggle_wrap {
    text-align: center;
    margin: 30px 0 10px;
    position: relative;
}

/* 구분선 효과 */
.cmt_toggle_wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.btn_cmt_toggle {
    position: relative;
    z-index: 2; /* 선보다 위에 오게 */
    background: #fff;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(106, 103, 243, 0.1);
}

.btn_cmt_toggle:hover {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(106, 103, 243, 0.3);
}

/* 화살표 아이콘 회전 애니메이션 */
.btn_cmt_toggle i {
    transition: transform 0.3s ease;
}
.btn_cmt_toggle.active i {
    transform: rotate(180deg); /* 열렸을 때 뒤집기 */
}
.btn_cmt_toggle.active {
    background: var(--main-color);
    color: #fff;
}

/* 댓글 영역 초기 숨김 처리를 위한 클래스 */
#view_comment_area {
    display: none; /* 기본적으로 숨김 */
}

.pf_img{max-width: 60px;border-radius:50%; overflow:hidden;}