/* ========================================
   콘텐츠 보호 (Content Protection)
   ======================================== */

/* 텍스트 선택 완전 차단 */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* 드래그 방지 */
* {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* 이미지 드래그 방지 */
img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
}

/* 텍스트 하이라이트 방지 */
::selection {
    background: transparent !important;
    color: inherit !important;
}

::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* 입력 필드는 선택 가능하도록 예외 처리 */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* 스크린샷 방지 워터마크 (CSS로 구현) */
body::after {
    content: '© AADS - ANAB';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 5rem;
    color: rgba(74, 144, 226, 0.05);
    pointer-events: none;
    z-index: 9998;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 2rem;
}

/* 개발자 도구 경고 메시지 */
.devtools-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 2rem;
    text-align: center;
    padding: 2rem;
}

.devtools-warning.active {
    display: flex;
}

.devtools-warning h2 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.devtools-warning p {
    margin: 1rem 0;
    line-height: 1.6;
}

/* 복사 방지 커서 */
body {
    cursor: default !important;
}

/* 모바일 길게 누르기 방지 */
* {
    -webkit-touch-callout: none !important;
}

/* 화면 캡처 시 흐릿하게 만들기 (일부 브라우저 지원) */
.protected-content {
    -webkit-filter: blur(0px);
    filter: blur(0px);
    transition: filter 0.3s ease;
}

/* Print 스타일 (인쇄 방지) */
@media print {
    body {
        display: none !important;
    }
    
    body::before {
        content: '이 문서는 인쇄가 허용되지 않습니다. / This document cannot be printed.';
        display: block;
        text-align: center;
        font-size: 24px;
        padding: 50px;
        color: red;
    }
}
