/**
 * SECURITY CSS - A$$ KEETCHUM
 * Protection against content copying and selection
 */

/* Disable text selection on all elements except inputs */
*:not(input):not(textarea) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Allow selection only on input fields */
input,
textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto;
}

/* Disable pointer events on images for context menu */
img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Protect canvas elements */
canvas {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Disable printing styles */
@media print {
    * {
        display: none !important;
    }

    body::before {
        content: 'Printing is disabled for this protected content.';
        display: block !important;
        font-size: 24px;
        text-align: center;
        padding: 100px;
    }
}

/* Hidden watermark layer */
body::after {
    content: 'A$$ KEETCHUM - Protected Content';
    position: fixed;
    bottom: -100px;
    right: -100px;
    opacity: 0;
    pointer-events: none;
    z-index: -9999;
}

/* Protect against highlighting */
::selection {
    background: transparent;
    color: inherit;
}

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

/* Disable link drag */
a {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Protect video elements */
video {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Hide cursor on right click attempt (visual feedback) */
body.no-context {
    cursor: not-allowed;
}

/* Anti-copy overlay for images */
.protected-image {
    position: relative;
}

.protected-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}
