/* EFV Ultra-Secure Protection Layer Styles */

/* Violation Overlay - Matches User Screenshot */
#security-violation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1b0000, #000);
    z-index: 2147483647 !important;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-align: center;
    pointer-events: all;
    border-top: 5px solid #ff3b3b;
    padding: 20px;
}

body.security-violator #security-violation-overlay {
    display: flex !important;
}

.violation-content {
    max-width: 650px;
    animation: fadeIn 0.5s ease-out;
}

.violation-icon {
    font-size: 80px;
    color: #ff3b3b;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 59, 59, 0.4));
    animation: violation-pulse 2s infinite;
}

#security-violation-overlay h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ff3b3b;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
}

#security-violation-overlay p {
    font-size: 1.1rem;
    color: #ffd1d1;
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.violation-meta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 59, 59, 0.2);
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #ffb3b3;
    margin-bottom: 40px;
    display: inline-block;
    text-align: left;
}

.meta-row {
    margin-bottom: 5px;
}

.meta-row span {
    font-weight: bold;
    color: #ff3b3b;
    margin-right: 10px;
}

.violation-restore-btn {
    background: transparent;
    border: 2px solid #ff3b3b;
    color: #ff3b3b;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.violation-restore-btn:hover {
    background: #ff3b3b;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.4);
    transform: translateY(-2px);
}

/* Watermark Styles - MUST BE TOP LAYER */
#security-watermark-container, .security-watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: 2147483646 !important;
    overflow: hidden;
    display: none;
}

.security-watermark-item {
    position: absolute;
    transform: rotate(-25deg);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 211, 105, 0.08);
    /* Faint gold */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Base protection active */
body.security-active {
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.security-active img,
body.security-active video {
    pointer-events: none !important;
}

/* Animations */
@keyframes violation-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent Print */
@media print {
    body {
        display: none !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #security-violation-overlay h1 {
        font-size: 1.5rem;
    }

    #security-violation-overlay p {
        font-size: 0.9rem;
    }

    .violation-icon {
        font-size: 60px;
    }
}