/**
 * Site Copy Protection Frontend CSS
 * Version: 1.0.3
 * Author: DESiGNiA Web
 * Author URI: https://designiawebspain.com/
 * © 2026 DESiGNiA Web.
 *
 * REFACTORED: !important removed from aesthetic properties
 * to allow easy customization via Custom CSS section.
 * Only critical functional properties retain !important.
 */

/* Disable text selection */
.scp-disabled-select {
    -webkit-user-select: none !important;
    -moz-user-select: -moz-none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

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

/* Protection overlay for sensitive content */
.scp-protection-overlay {
    position: relative;
}

.scp-protection-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999;
    pointer-events: auto;
}

/* Image watermark styles */
.scp-watermarked {
    position: relative;
}

.scp-watermark {
    position: absolute !important;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none !important;
    z-index: 10 !important;
    font-family: "Oswald", Helvetica, Verdana, Arial, sans-serif;
    text-transform: none;
}

/* Custom alert styles - AESTHETIC PROPERTIES WITHOUT !important */
.scp-protection-alert {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Aesthetic properties - easily customizable */
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 300;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: "Lato", Helvetica, Verdana, Arial, sans-serif;
    text-transform: none;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
}

.scp-protection-alert.show {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1, 0.97) !important;
    pointer-events: auto !important;
}

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

/* Additional protection for specific elements */
.scp-protected {
    position: relative;
}

.scp-protected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: transparent;
}

/* Prevent right click on images */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
}

/* Allow selection for inputs and textareas */
input, textarea, select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Suppress blue tap highlight on mobile */
a, button, input, select, textarea, [role="button"], label, summary {
    -webkit-tap-highlight-color: transparent !important;
}

/* Mobile-specific protection */
@media (max-width: 768px) {
    /* Allow touch on inputs */
    input, textarea, select {
        -webkit-touch-callout: default !important;
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }
}

/* High contrast mode protection */
@media (prefers-contrast: high) {
    .scp-protection-alert {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .scp-protection-alert {
        background: rgba(255, 255, 255, 0.95);
        color: #000;
    }

    .scp-watermark {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}

/* Animation for alert */
@keyframes scp-alertPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.scp-protection-alert.show {
    animation: scp-alertPulse 0.3s ease-out;
}

/* Hide developer tools shortcut */
.scp-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}