/* Secure Screen Guard Styles */

/* 1. Watermark Overlay */
.ssg-watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    /* Top level */
    pointer-events: none;
    /* Let clicks pass through */
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: space-around;
    opacity: 0.06;
    /* Deterrence level visibility (not too intrusive but visible) */
    overflow: hidden;
}

.ssg-mark {
    transform: rotate(-30deg);
    font-size: 14px;
    font-weight: bold;
    color: #000;
    padding: 20px;
    user-select: none;
}

.ssg-ip {
    display: block;
    font-size: 10px;
    color: #333;
}

/* 2. Deterrence Actions */
body.ssg-protected {
    -webkit-user-select: none;
    /* Chrome/Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+ */
    user-select: none;
    /* Standard */
}

/* 3. The "Flash" Blur Effect */
body.ssg-blurred {
    filter: blur(20px) !important;
    overflow: hidden !important;
}

body.ssg-blurred::after {
    content: "Print Bloqueado / Tentativa Registrada";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 1000000;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Dancing Watermark (Anti-IA) */
@keyframes ssg-dance {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 0.15;
    }

    25% {
        transform: translate(10px, -10px) rotate(-40deg);
        opacity: 0.2;
    }

    50% {
        transform: translate(-5px, 5px) rotate(-50deg);
        opacity: 0.1;
    }

    75% {
        transform: translate(-10px, 10px) rotate(-45deg);
        opacity: 0.25;
    }

    100% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 0.15;
    }
}

.ssg-mark.ssg-dancing {
    animation: ssg-dance 5s infinite ease-in-out;
}

/* Heavy Blur for Smart Window Mode */
body.ssg-blurred-heavy {
    filter: blur(30px) !important;
    overflow: hidden !important;
    pointer-events: none;
}

body.ssg-blurred-heavy::after {
    content: "🔒 Proteção Ativa: Volte para a Janela";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 1000000;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* 4. Privacy Badge (Shield) */
.ssg-privacy-badge {
    position: fixed;
    bottom: 90px;
    /* Aligned with User preference */
    left: 20px;
    z-index: 9999999;
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ssg-shield-icon {
    width: 100%;
    height: 100%;
    background: #23282d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s;
}

.ssg-shield-icon svg {
    width: 20px;
    height: 20px;
}

.ssg-privacy-badge:hover .ssg-shield-icon,
.ssg-privacy-badge:focus .ssg-shield-icon {
    transform: scale(1.1);
    background: #0073aa;
}

.ssg-privacy-popup {
    position: absolute;
    bottom: 50px;
    /* Floats ABOVE the icon */
    left: 0;
    width: 280px !important;
    /* Force width constraint */
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 1px solid #e5e5e5;
}

/* Arrow pointing down */
.ssg-privacy-popup::before {
    content: "";
    position: absolute;
    left: 14px;
    /* Center with icon center (~20px) */
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(45deg);
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.ssg-privacy-badge:hover .ssg-privacy-popup,
.ssg-privacy-badge:focus .ssg-privacy-popup,
.ssg-privacy-badge:active .ssg-privacy-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}