/* =========================
   리뷰 신고 버튼 (트리거)
   contentDetail.jsp / goodsDetail.jsp 공용
   - 마크업이 각 페이지의 .review-meta 안에 있으므로
     상위 스코프를 걸지 않고 .report-btn 자체를 전역으로 스타일링한다.
========================= */

.report-btn {

    display: inline-flex;

    min-height: 30px;

    align-items: center;
    justify-content: center;

    margin-left: auto;

    padding: 5px 10px;

    border: 1px solid rgba(255, 105, 105, 0.35);
    border-radius: 7px;

    background: rgba(255, 80, 80, 0.08);
    color: #ff9b9b;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition: background-color 0.2s ease, border-color 0.2s ease;

}

button.report-btn:hover {

    border-color: rgba(255, 105, 105, 0.65);
    background: rgba(255, 80, 80, 0.16);

}

.report-btn.reported {

    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);

    color: #777777;

    cursor: default;

}

/* =========================
   리뷰 신고 모달
========================= */

.modal-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 9999;

}


.modal-overlay[hidden] {

    display: none;

}


/* 모달 박스 */

.modal-box {

    width: 460px;

    background: #202020;

    color: #ffffff;

    border-radius: 16px;

    padding: 32px;

    border: 1px solid #333;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.6);

}


/* 제목 */

.modal-box h3 {

    margin: 0 0 28px;

    font-size: 22px;

    font-weight: 700;

    color: #ffffff;

}


/* 입력 영역 */

.modal-field {

    margin-bottom: 22px;

}


.modal-field label {

    display:block;

    margin-bottom:10px;

    color:#d0d0d0;

    font-size:14px;

    font-weight:600;

}


/* select */

.modal-field select {

    width:100%;

    height:44px;

    padding:0 14px;

    border-radius:8px;

    border:1px solid #444;

    background:#2a2a2a;

    color:#ffffff;

    font-size:14px;

    outline:none;

    cursor:pointer;

}


.modal-field select:focus {

    border-color:#7EB1FF;

}


/* textarea */

.modal-field textarea {

    width:100%;

    height:130px;

    padding:14px;

    box-sizing:border-box;

    resize:none;

    border-radius:8px;

    border:1px solid #444;

    background:#2a2a2a;

    color:#ffffff;

    font-size:14px;

    line-height:1.5;

    outline:none;

}


.modal-field textarea::placeholder {

    color:#888;

}


.modal-field textarea:focus {

    border-color:#7EB1FF;

}


/* 버튼 영역 */

.modal-actions {

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:30px;

}


/* 공통 버튼 */

.modal-actions .btn {

    min-width:90px;

    height:40px;

    border-radius:8px;

    border:none;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:0.2s;

}


/* 취소 */

#reportCancelBtn {

    background:#333;

    color:#ddd;

}


#reportCancelBtn:hover {

    background:#444;

}


/* 신고 */

.btn-danger {

    background:#e50914;

    color:white;

}


.btn-danger:hover {

    background:#f40612;

}

@media (max-width:768px) {
    .modal-box {
        width:92%;
        max-width:460px;
        padding:24px;
    }
}

@media (max-width:480px) {
    .modal-box h3 {
        font-size:19px;
    }

    .modal-actions {
        flex-direction:column-reverse;
        gap:8px;
    }

    .modal-actions .btn {
        width:100%;
    }
}