/* -- Reply Area -- */
.reply_box {
    margin: 20px 0;
}

.articleReply {
    padding: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.articleReply .writeReply {
    padding: 0.7em 0.5em;
    border: 1px solid #ddd;
    box-sizing: border-box;   
}

.writeReply .indtx {
    font-size: 0.9em;
    color: #888;
    font-weight: 300;
    margin: 3px 0 0;
}

/* -- View Reply -- */
.list-Reply {
    padding: 8px 0;
}

.list-Reply li:first-child {
    border-top: 1px solid #bbb;
}

.list-Reply li:last-child {
    border-bottom: 1px solid #ddd;
}

.list-Reply li {
    border-bottom: 1px dotted #ccc;
    padding: 0 0 0.1em;
}

/* PC: 한 줄 레이아웃 */
.replyItemRow {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.2em 0;
}

.replyItemRow .contentRew {
    flex: 1;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    word-break: break-word;
    min-width: 0; /* flex item이 줄어들 수 있도록 */
}

.replyItemRow .infoBoxRew {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background-color: transparent;
    flex-shrink: 0;
    white-space: nowrap;
}

.replyItemRow .infoBoxRew .authorRew::before,
.replyItemRow .infoBoxRew .dateRew::before {
    display: none; /* PC에서는 아이콘 제거 */
}

.replyItemRow .infoBoxRew .authorRew {
    color: #3074a5;
    margin: 0;
}

.replyItemRow .infoBoxRew .dateRew {
    color: #999;
    margin: 0;
    font-size: 0.85em;
    font-weight: 300;
}

.replyItemRow .infoBoxRew .delBtnRew {
    width: 16px;
    height: 16px;
    margin: 0;
    background: url('../images/icons/trash3-ico.svg') no-repeat center / cover;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.replySeparator {
    color: #ddd;
    margin: 0 8px;
    flex-shrink: 0;
}

/* 모바일: 기존 레이아웃 유지 */
@media screen and (max-width: 768px) {
    .replyItemRow {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .replyItemRow .replySeparator {
        display: none; /* 모바일에서는 구분선 숨김 */
    }
    
    .replyItemRow .contentRew {
        padding: 0.5em 0.5em 0.2em;
        width: 100%;
    }
    
    .replyItemRow .infoBoxRew {
        padding: 0.55em 0.5em;
        background-color: #f7f7f7;
        width: 100%;
        margin-top: 0;
        flex-direction: row;
    }
    
    .replyItemRow .infoBoxRew .authorRew::before,
    .replyItemRow .infoBoxRew .dateRew::before {
        display: inline-block; /* 모바일에서는 아이콘 표시 */
    }
    
    .replyItemRow .infoBoxRew .dateRew {
        margin-left: 15px;
    }
    
    .replyItemRow .infoBoxRew .delBtnRew {
        margin-left: 10px;
    }
}

.list-Reply .infoBoxRew {
    padding: 0.55em 0.5em;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.list-Reply .delrexo {
    padding: 5px 5px 5px 10px;
}

.list-Reply .delrexo .txsoo {
    font-size: 0.88em;
    font-weight: 350;
    color: #888;
    padding: 0 0 4px;
}

.list-Reply .delrexo .inxsoo > input {
    height: 30px;
    width: 95px;
}

.list-Reply .delrexo .inxsoo > button {
    display: inline-block;
    margin: 0 0 0 3px;
    background-color: #ddd;
    padding: 0 0.7em;
    line-height: 28px;
    border: 1px solid #ccc;
    height: 30px;
    cursor: pointer;
}

.infoBoxRew .authorRew {
    color: #3074a5;
}

.infoBoxRew .authorRew::before,
.infoBoxRew .dateRew::before,
.infoBoxRew .delBtnRew {
    display: inline-block;
    width: 14px;
    height: 14px;   
    vertical-align: middle; 
}

.infoBoxRew .authorRew::before,
.infoBoxRew .dateRew::before {
    content: '';
    margin-right: 5px;
}

.infoBoxRew .authorRew::before {
    background: url('../images/icons/user2-ico.svg') no-repeat center / cover;
}

.infoBoxRew .dateRew {
    color: #999;
    margin-left: 15px;
    font-size: 0.8em;
    font-weight: 300;
}

.infoBoxRew .dateRew::before {
    background: url('../images/icons/clock2-ico.svg') no-repeat center / cover;
}

.infoBoxRew .delBtnRew {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    background: url('../images/icons/trash3-ico.svg') no-repeat center / cover;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* 기존 contentRew 스타일 (모바일용으로 유지) */
.list-Reply .contentRew {
    padding: 0.5em 0.5em 0.2em;
    box-sizing: border-box;
    line-height: 1.6;
    word-break: break-word;
}

/* -- Write Reply -- */
.writeReply {
    background-color: #f7f7f7;
}

.writeReply .titBoxReply {
    display: flex;
    align-items: center;
    box-sizing: border-box;    
}

.writeReply .titBoxReply > h3 {
    font-size: 1.07em;
    font-weight: 600;    
}

.writeReply .titBoxReply .authorCount {
    margin: 0 0 0 8px;
    font-size: 0.9em;
    color: #888;
    font-weight: 300;
}

.writeBoxReply .npassBx {
    margin: 12px 0 0;
}

.writeBoxReply .npassBx > input,
.writeBoxReply .npassBx > select {
    height: 35px;
    border: 1px solid #ddd;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Malgun Gothic','Apple SD Gothic Neo', sans-serif;
    font-size: 1em;
    background-color: #fcfdfd;
    border-radius: 3px;
    outline: none;
}

.writeBoxReply .npassBx > input:first-of-type,
.writeBoxReply .npassBx > select:first-of-type {
    margin: 0 7px 0 0;
}

.writeBoxReply .npassBx > input[type="text"],
.writeBoxReply .npassBx > input[type="password"] {
    width: 150px;
}

.writeBoxReply .npassBx > select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.writeBoxReply .npassBx > select:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);
}


.writeBoxReply .npassBx > input::placeholder,
.writeReply .writeBoxReply .textBoxrex::placeholder,
.submitBoxReply .rnibx > input::placeholder {
    font-size: 0.9em;
    color: #aaa;
}

.writeReply .writeBoxReply .textBoxrex {
    width: 100%;
    margin: 8px auto;
    height: 5em;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.submitBoxReply {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.submitBoxReply .rnibx {
    display: flex;
    align-items: center;
    margin: 0 7px 0 0;
}

.submitBoxReply .rnibx > input {
    height: 35px;
    width: 100px;
    border: 1px solid #ddd;
    padding: 0 10px;
    box-sizing: border-box;
}

.submitBoxReply .rnibx .rntxt {
    margin: 0 4px 0 0;
    font-weight: 350;
    color: #777;
    font-size: 0.9em;
}

.submitBoxReply .rnibx .rncode {
    display: inline-block;
    margin: 0 7px 0 0;
    padding: 0 0.7em;
    line-height: 35px;
    color: #444;
    font-size: 1.15em;
    background-color: #ccc;
    font-weight: 600;
    border: 1px solid #bbb;
    box-sizing: border-box;
}

.submitBoxReply .BtnReply {
    font-size: 1em;
    display: inline-block;
    padding: 10px 24px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.submitBoxReply .BtnReply:hover {
    background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .writeBoxReply .npassBx > input,
    .writeBoxReply .npassBx > select {
        width: 100%;
        height: 35px;
    }
    .writeBoxReply .npassBx > .type-sup1,
    .writeBoxReply .npassBx > input:first-of-type,
    .writeBoxReply .npassBx > select:first-of-type {
        margin: 0 0 7px 0;
    }
    
    .submitBoxReply {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submitBoxReply .rnibx {
        width: 100%;
        margin: 0 0 7px 0;
        justify-content: flex-end;
    }
    
    .submitBoxReply .BtnReply {
        width: 100%;
        margin-top: 5px;
    }
}

/* -- Delete Reply Modal -- */
.reply_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reply_modal_content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.reply_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f7f7f7;
}

.reply_modal_header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.reply_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.reply_modal_close:hover {
    color: #333;
}

.reply_modal_body {
    padding: 20px;
}

.reply_modal_body .txsoo {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.reply_modal_body .inxsoo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply_modal_body .inxsoo > input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    padding: 0 12px;
    box-sizing: border-box;
}

.reply_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background-color: #f7f7f7;
}

.reply_modal_footer button {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
}

.reply_modal_footer .btn_cmt_del {
    background-color: #f42827;
    color: #fff;
    border-color: #f42827;
}

.reply_modal_footer .btn_cmt_del:hover {
    background-color: #d6201f;
    border-color: #d6201f;
}

.reply_modal_footer .btn_m_close:hover {
    background-color: #f5f5f5;
}

/* -- More Button -- */
.replyMoreBx {
    padding: 15px 0;
    text-align: center;
}

.btn_reply_more {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 0.95em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn_reply_more:hover {
    background-color: #f7f7f7;
    border-color: #999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn_reply_more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn_reply_more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
    color: #999;
}

/* Mobile Responsive for Modal */
@media screen and (max-width: 768px) {
    .reply_modal_content {
        width: 95%;
        margin: 20px;
    }
    
    .reply_modal_footer {
        flex-direction: column;
    }
    
    .reply_modal_footer button {
        width: 100%;
    }
    
    .pagingBx .pagingList {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .pagingBx .pagingList li a,
    .pagingBx .pagingList li span {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        padding: 0 6px;
        font-size: 0.9em;
    }
}

/* -- End Reply Area -- */

