/* Intellectual Property Protection Styles */

/* Disable text selection globally */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection only in input fields */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for functional elements */
button, a, input, textarea, select, [role="button"] {
    pointer-events: auto;
}

/* Disable highlighting */
::selection {
    background: transparent;
}

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

/* Hide scrollbars to prevent easy content measurement */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Add copyright watermark */
body::after {
    content: "© StampMyVid.com - All Rights Reserved";
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 9999;
}

/* Prevent content from being easily copied via CSS */
.protected-content {
    position: relative;
    overflow: hidden;
}

.protected-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Style for the protection warning overlay */
.protection-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: red;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 24px;
    text-align: center;
    z-index: 99999;
    display: none;
}

/* Blur effect for sensitive content */
.blur-protection {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.blur-protection:hover {
    filter: blur(0px);
}

/* Print protection */
@media print {
    body {
        display: none !important;
    }
    
    body::before {
        content: "This content is protected by copyright and cannot be printed. © StampMyVid.com - All Rights Reserved";
        display: block;
        font-size: 18px;
        text-align: center;
        margin: 100px auto;
        color: black;
    }
}

/* Additional protection for mobile devices */
@media (max-width: 768px) {
    body {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
    
    /* Disable long press context menu on mobile */
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}