/**
 * ═══════════════════════════════════════════════════════════════
 * MK PROFILE — SECURITY CSS
 * Content Protection & Visual Security Styles
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════
   TEXT SELECTION PROTECTION
   ═══════════════════════════════════════ */

/* Disable text selection globally */
body,
html,
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow selection only in form inputs */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ═══════════════════════════════════════
   IMAGE PROTECTION
   ═══════════════════════════════════════ */

/* Prevent 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 image context menu visual feedback */
img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

/* Add watermark protection overlay to images */
.protected-image {
    position: relative;
}

.protected-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

/* ═══════════════════════════════════════
   PRINT PROTECTION
   ═══════════════════════════════════════ */

@media print {
    body {
        display: none !important;
    }

    html::before {
        content: 'Printing is not allowed on this website.';
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }
}

/* ═══════════════════════════════════════
   SECURITY WARNING STYLES
   ═══════════════════════════════════════ */

#security-warning {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ═══════════════════════════════════════
   DISABLE HIGHLIGHTING
   ═══════════════════════════════════════ */

::selection {
    background: transparent !important;
    color: inherit !important;
}

::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* Allow selection in forms */
input::selection,
textarea::selection {
    background: rgba(130, 36, 227, 0.3) !important;
    color: inherit !important;
}

input::-moz-selection,
textarea::-moz-selection {
    background: rgba(130, 36, 227, 0.3) !important;
    color: inherit !important;
}

/* ═══════════════════════════════════════
   SECURE LINK STYLES
   ═══════════════════════════════════════ */

/* External links indicator */
a[target="_blank"]:not(.no-indicator)::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
}

/* Secure form input indicators */
input:valid {
    border-color: rgba(34, 197, 94, 0.5);
}

input:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

/* ═══════════════════════════════════════
   HONEYPOT FIELD STYLE
   ═══════════════════════════════════════ */

/* Hide honeypot from screen readers too */
.hp-field,
[name="website_url_hp"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ═══════════════════════════════════════
   ANTI-IFRAME STYLES
   ═══════════════════════════════════════ */

/* Visual indicator if somehow loaded in iframe */
body.in-iframe {
    border: 5px solid red !important;
}

body.in-iframe::before {
    content: '⚠️ Security Warning: This site should not be displayed in an iframe.';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: #ff4444;
    color: white;
    text-align: center;
    font-weight: bold;
    z-index: 999999;
}

/* ═══════════════════════════════════════
   SECURE SCROLLBAR (Prevent some scraping)
   ═══════════════════════════════════════ */

/* Custom scrollbar makes automation harder */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 10, 30, 0.9);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8224e3 0%, #b553f7 100%);
    border-radius: 4px;
}

/* ═══════════════════════════════════════
   DISABLED STATE FOR SECURITY LOCKDOWN
   ═══════════════════════════════════════ */

body.security-lockdown {
    pointer-events: none !important;
    filter: blur(10px);
}

body.security-lockdown::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    pointer-events: auto;
}