/* assets/css/protection.css - Content protection styles */

body.protected-page {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.protected-page input,
body.protected-page textarea,
body.protected-page select,
body.protected-page [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body.protected-page img,
body.protected-page svg,
body.protected-page video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

body.protected-page ::selection {
    background: transparent;
    color: inherit;
}

body.protected-page ::-moz-selection {
    background: transparent;
    color: inherit;
}

/* Hide content while the browser print dialog is open. */
body.protected-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
}

@media print {
    body.protected-page > * {
        display: none !important;
    }

    body.protected-page::after {
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        content: "Printing, copying and downloading are disabled on this site.";
        color: #047857;
        font-family: Arial, sans-serif;
        font-size: 22px;
        text-align: center;
        padding: 40px;
    }
}

/* On-screen warning shown when a copy / screenshot attempt is detected. */
.dv-protect-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: #062d1f;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 18px 40px rgba(6, 45, 31, 0.35);
    z-index: 2147483600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 90vw;
    text-align: center;
}

.dv-protect-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------- Screenshot shield overlay ---------------------- */

.dv-shield {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: #050b14;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.dv-shield.is-active {
    opacity: 1;
    visibility: visible;
}

.dv-shield-inner {
    text-align: center;
    padding: 24px;
    max-width: 480px;
}

.dv-shield-badge {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.06);
}

.dv-shield-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.dv-shield-text {
    margin-top: 10px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
}

.dv-shield-hint {
    margin-top: 18px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 13px;
    color: #64748b;
}

.dv-shield-hint kbd {
    display: inline-block;
    padding: 2px 7px;
    margin: 0 2px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

@media (max-width: 576px) {
    .dv-shield-title {
        font-size: 20px;
    }

    .dv-shield-text {
        font-size: 14px;
    }

    .dv-shield-badge {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }
}
