@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root { --p-color: #8b5cf6; --bg-light: #f8fafc; --text-light: #888; }

body { font-family: 'Pretendard', sans-serif; color: #111; margin: 0; background: #fff; line-height: 1.6; word-break: keep-all; }
.gn_container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; box-sizing: border-box; }

/* [상태 배지] */
.ev_status { padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 800; display: inline-block; text-transform: uppercase; }
.status_ing { background: #ecfdf5; color: #10b981; } 
.status_before { background: #eff6ff; color: #3b82f6; } 
.status_end { background: #f1f5f9; color: #64748b; } 

/* [필터바 & 버튼] */
.f_filter_section { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.f_filter_form { display: flex; gap: 10px; flex: 1; min-width: 300px; }
.f_capsule { background: #fff; border: 1px solid #e2e8f0; border-radius: 50px; padding: 0 20px; flex: 1; display: flex; align-items: center; gap: 8px; height: 50px; }
.f_capsule select { border: none; width: 100%; outline: none; background: transparent; font-size: 14px; cursor: pointer; }
.f_btn_main { background: var(--p-color); color: #fff !important; border: none; padding: 0 25px; border-radius: 50px; font-weight: 700; height: 50px; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; white-space: nowrap; transition: 0.3s; }

/* [아코디언 배너 - 반응형] */
.accordion_banner { display: flex; width: 100%; height: 500px; gap: 10px; margin-bottom: 60px; }
.acc_item { position: relative; flex: 0.5; overflow: hidden; border-radius: 25px; transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1); background: #000; }
.acc_item.active, .acc_item:hover { flex: 4; }
.acc_img_box { width: 100%; height: 100%; opacity: 0.5; transition: 0.5s; }
.acc_img_box img { width: 100%; height: 100%; object-fit: cover; }
.acc_info_full { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; opacity: 0; transition: 0.5s; pointer-events: none; }
.acc_item.active .acc_info_full, .acc_item:hover .acc_info_full { opacity: 1; pointer-events: auto; }
.acc_title_vertical { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); writing-mode: vertical-rl; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 3px; white-space: nowrap; }
.acc_item.active .acc_title_vertical, .acc_item:hover .acc_title_vertical { opacity: 0; }

/* [리스트 그리드 - 반응형] */
.f_grid_layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.f_grid_card img { width: 100%; aspect-ratio: 4/5.5; border-radius: 15px; object-fit: cover; }

/* [뷰 페이지 레이아웃] */
.v_header_top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.v_subject { font-size: 34px; font-weight: 900; letter-spacing: -1.2px; margin: 5px 0 0; }
.v_h_ctrl { display: flex; gap: 8px; }
.btn_v_sub { font-size: 13px; color: #999; text-decoration: none; padding: 8px 16px; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; font-weight: 600; }

.v_top_info_card { display: flex; gap: 40px; background: #fff; border: 1px solid #f1f5f9; border-radius: 30px; padding: 40px; margin: 40px 0; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.v_card_poster { flex: 0 0 280px; }
.v_card_poster img { width: 100%; border-radius: 15px; display: block; }
.v_card_details { flex: 1; }
.v_info_item { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.v_info_item label { display: block; color: #888; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.v_info_item p { font-size: 18px; font-weight: 800; margin: 0; }

/* [미디어 쿼리 - 모바일 대응] */
@media (max-width: 1024px) {
    .f_grid_layout { grid-template-columns: repeat(3, 1fr); }
    .accordion_banner { height: 400px; }
}

@media (max-width: 768px) {
    .gn_container { padding: 20px 15px; }
    .f_filter_section { flex-direction: column; align-items: stretch; }
    .f_filter_form { order: 2; }
    .f_btn_main.write_btn { order: 1; }
    
    .accordion_banner { height: 300px; }
    .acc_info_full { padding: 20px; }
    .acc_info_full h3 { font-size: 20px !important; }
    
    .f_grid_layout { grid-template-columns: repeat(2, 1fr); gap: 15px 10px; }
    
    .v_header_top { flex-direction: column; align-items: flex-start; }
    .v_h_ctrl { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .v_h_ctrl a { text-align: center; padding: 10px 0; }
    .v_subject { font-size: 24px; }
    
    .v_top_info_card { flex-direction: column; padding: 20px; gap: 25px; }
    .v_card_poster { flex: none; width: 100%; max-width: 300px; margin: 0 auto; }
    
    /* 글쓰기 페이지 그리드 해제 */
    .write_grid_2 { grid-template-columns: 1fr !important; }
}

/* [댓글 영역 전체 디자인] */
.gn_comment_area { 
    background:#fff; 
    border-top:1px solid #f1f5f9; 
    padding:60px 0; 
    margin-top: 60px; 
}

/* 댓글 개수 버튼 */
.cmt_btn { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    width: 100%; 
    height: 55px; 
    font-size: 16px; 
    font-weight: 700; 
    color: #111; 
    cursor: pointer; 
    text-align: left; 
    padding: 0 25px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 30px; 
}
.cmt_btn b { color: var(--p-color); }

/* 댓글 리스트 아이템 */
#bo_vc article { 
    display: flex; 
    gap: 20px; 
    padding: 30px 0; 
    border-bottom: 1px solid #f4f7f9; 
    position: relative; 
}

.pf_img img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover; 
    background: #eee; 
    flex-shrink: 0; /* 이미지 크기 고정 */
}

.cm_wrap { flex: 1; min-width: 0; } /* 내용이 넘치지 않게 설정 */
.cm_wrap header { margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cm_wrap .wr_name { font-weight: 700; font-size: 15px; }
.cm_wrap .bo_vc_hdinfo { font-size: 12px; color: #aaa; }
.cmt_contents { font-size: 15px; color: #444; line-height: 1.7; word-break: break-all; }

/* 댓글 관리 버튼 (수정/삭제 등) */
.bo_vl_opt { position: absolute; top: 30px; right: 0; }
.btn_cm_opt { background:none; border:none; color:#ccc; cursor:pointer; font-size:18px; padding: 5px; }

/* [댓글 작성 폼] */
#bo_vc_w { background: #f8fafc; border-radius: 20px; padding: 30px; margin-top: 40px; }
#wr_content { 
    width: 100%; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 15px; 
    min-height: 100px; 
    resize: none; 
    margin-bottom: 15px; 
    display: block;
    box-sizing: border-box;
}

.bo_vc_w_wr { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.bo_vc_w_info { display: flex; gap: 10px; flex: 1; }
.bo_vc_w_info input { 
    height: 45px; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 0 15px; 
    flex: 1; 
    min-width: 80px;
}

.btn_submit { 
    background: var(--p-color); 
    color: #fff; 
    border: none; 
    padding: 0 30px; 
    height: 45px; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    white-space: nowrap;
}

/* [댓글 반응형 처리] */
@media (max-width: 768px) {
    #bo_vc article { gap: 12px; padding: 20px 0; }
    .pf_img img { width: 40px; height: 40px; }
    .cmt_contents { font-size: 14px; }
    
    #bo_vc_w { padding: 20px; }
    .bo_vc_w_info { width: 100%; } /* 모바일에서 이름/비번 입력창 가로 꽉 차게 */
    .btn_submit { width: 100%; height: 50px; } /* 등록 버튼 크게 */
}