@charset "utf-8";

/* 제목 숨김 */
#container_title {display: none !important;}

ul { list-style: none; padding: 0; margin: 0; }

/* ==========================================
   게시판 목록 (List)
========================================== */
#bo_list { position: relative; margin-bottom: 20px; margin: auto; }
#bo_list_total span {font-size: 16px;}
#bo_btn_top ul.btn_bo_user li a.btn_b01 { display: flex; align-items: center; background:#ff3146; color:#fff; font-weight:bold; border-radius:8px; padding:5px 20px; }


.review-board-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 2px solid #1e293b;
    padding-top: 15px;
}

.review-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.review-item:hover {
    border-color: #ff3146;
    box-shadow: 0 4px 15px rgba(255, 49, 70, 0.05);
    transform: translateY(-2px);
}

.review-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.review-item .item-header .stars { display: flex; gap: 2px; }
.review-item .item-header .stars img { height: 16px; width: auto; }
.review-item .item-header .date { font-size: 14px; color: #94a3b8; }

.review-item .item-product { margin-bottom: 15px; }
.review-item .item-product .badge {
    display: inline-block;
    padding: 6px 12px;
    background: #fff0f0;
    color: #ff3146;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
}

.review-item .item-content-wrap {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* 이미지 영역: 고정 크기로 좌측에 배치 */
.review-item .item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0; /* 텍스트가 길어도 이미지 크기 축소 방지 */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.review-item .item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.review-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 찌그러지지 않고 꽉 차게 잘림 */
    transition: transform 0.3s ease;
}

.review-item:hover .item-image img {
    transform: scale(1.05); /* 마우스 올렸을 때 살짝 줌인 */
}

/* 텍스트 영역: 우측(또는 전체) 차지 */
.review-item .item-body {
    flex: 1;
    min-width: 0; /* flex 자식 요소의 말줄임표를 위해 필수 */
    margin-bottom: 0; /* 기존 마진 제거 */
}

/* 2줄 말줄임(Ellipsis) 처리 핵심 코드 */
.review-item .item-body .subj {
    font-size: 18px;
    line-height: 1.4;
    color: #1e293b;
    font-weight: 800;
    text-decoration: none;
    
    /* 여기서부터 2줄 자르기 설정 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2줄까지만 허용 (원하시면 3으로 변경 가능) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 2.8em; /* line-height(1.4) * 2줄 = 2.8em */
}

.review-item .item-body .subj:hover { 
    color: #ff3146; 
}

.review-item .item-body { margin-bottom: 20px; }
.review-item .item-body .subj {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.review-item .item-body .subj:hover { color: #ff3146; }
.review-item .notice-badge {
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 5px;
}
.review-item .cnt_cmt { color: #ff3146; font-size: 14px; font-weight: bold; margin-left: 5px; }
.review-item .new_icon { color: #fff; background: #22c55e; font-size: 11px; padding: 2px 5px; border-radius: 3px; margin-left: 5px; }

.review-item .item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.empty_table { padding: 50px 0; text-align: center; color: #94a3b8; font-size: 16px; border: 1px solid #e2e8f0; border-radius: 12px; }

/* 페이징 */
.pg_wrap { text-align: center; margin-top: 30px; }
.pg_page, .pg_current { display: inline-block; width: 35px; height: 35px; line-height: 35px; border-radius: 5px; font-weight: bold; font-size: 15px; text-decoration: none; }
.pg_page { color: #64748b; border: 1px solid #e2e8f0; }
.pg_current { background: #ff3146; color: #fff; }

/* ==========================================
   게시판 읽기 (View) / 쓰기 (Write) 공통
========================================== */
#bo_v_img img { max-width: 100%; height: auto; border-radius: 8px; }
#bo_v_top{ margin-top:40px; padding-top:20px; border-top:1px dashed #e2e8f0; display:flex; justify-content:space-between; align-items:center; }
#bo_v_top ul.btn_bo_user .btn_b01{ padding:10px 20px; background:#f1f5f9; color:#475569; border-radius:8px; font-weight:600; text-decoration:none; }
ul.bo_v_nb{margin: 30px 0 ;list-style:none; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden;}
ul.bo_v_nb li.prev-txt{padding:15px 20px; border-bottom:1px solid #e2e8f0; background:#f8fafc;}
ul.bo_v_nb li.next-txt{padding:15px 20px; background:#f8fafc;}
ul.bo_v_nb li span{ color:#94a3b8; margin-right:15px; font-weight:bold; }
ul.btn_bo_user{ display:flex; gap:10px; padding:0; margin:0; list-style:none; }

/* 댓글 (간단히 다듬음) */
#bo_vc { border-top: 2px solid #1e293b; padding-top: 20px; }
.cmt_btn { font-size: 18px; font-weight: bold; color: #1e293b; margin-bottom: 20px; }
#bo_vc article { padding: 20px 0; border-bottom: 1px solid #f1f5f9; }
#bo_vc header .member { font-weight: 800; color: #1e293b; font-size: 15px; }
#bo_vc header .bo_vc_hdinfo { color: #94a3b8; font-size: 13px; margin-left: 10px; }
#bo_vc .cmt_contents { font-size: 15px; color: #475569; margin-top: 10px; line-height: 1.6; }

.bo_vc_w { margin-top: 30px; background: #f8fafc; padding: 20px; border-radius: 12px; }
.bo_vc_w textarea { width: 100%; height: 100px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 15px; box-sizing: border-box; font-family: inherit; font-size: 15px; resize: vertical; }
.bo_vc_w .btn_confirm { text-align: right; margin-top: 10px; }
.bo_vc_w .btn_submit { background: #1e293b; color: #fff; border: none; padding: 10px 25px; border-radius: 6px; font-weight: bold; cursor: pointer; }


/* ==========================================
   반응형 처리 (Mobile -> Tablet -> PC)
========================================== */
@media screen and (min-width: 360px) {
    #bo_list{max-width: 90vw; padding: 20px 0;}
    /* PC 목록 레이아웃: 카드를 2단 Grid로 배치 */
    .review-board-list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 5px;
    }

    .review-item .item-content-wrap{
        flex-direction: column;
        align-items: center;
    }
    
    #bo_v { padding: 60px !important; }
    .view-header h2 { font-size: 24px !important; }
}

@media screen and (min-width: 1024px) {
    #bo_list{max-width: 100%; padding: 30px 0;}
    /* PC 목록 레이아웃: 카드를 2단 Grid로 배치 */
    .review-board-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .review-item .item-content-wrap{
        flex-direction: row;
        min-height: 90px;
    }
    
    #bo_v { padding: 60px !important; }
    .view-header h2 { font-size: 36px !important; }
}

@media screen and (min-width: 1440px) {
    #bo_list{max-width: 1280px; padding: 50px 0;}
    /* 와이드 모니터에선 여백만 살짝 더 줍니다 */
    .review-item { padding: 30px; }
    .review-item .item-body .subj { font-size: 22px; }
}
.view-header {position:relative;z-index: 200;}