/*
* [모듈명]: 크롭 모달 스타일
* [파일명]: cropper.css
* [역할]: 프로필 사진 포커싱을 위한 크롭 인터페이스의 레이아웃과 디자인을 정의합니다.
*/

.cropper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #000;
    z-index: 10000;
    display: none;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
}

.cropper-modal.active {
    display: flex;
}

.cropper-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #222;
}

.cropper-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.btn-cropper-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.cropper-body {
    flex: 1;
    position: relative;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none; /* 브라우저 기본 터치 액션 차단 */
    overflow: hidden;
}

/* 크롭 가이드 (원형 마스크) */
.cropper-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.7); /* 외부 어둡게 처리 */
    border: 2px solid #fff;
    pointer-events: none; /* 마우스 이벤트 통과 */
    z-index: 10;
}

.cropper-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cropper-target-img {
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
    cursor: move;
}

.cropper-footer {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #000;
    border-top: 1px solid #222;
}

.cropper-controls {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.zoom-slider {
    flex: 1;
    -webkit-appearance: none;
    background: #333;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.btn-cropper-confirm {
    width: 100%;
    max-width: 320px;
    height: 50px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cropper-confirm:active {
    opacity: 0.8;
}
