/* 
   Site Protection Stylesheet
   Prevents text selection and hides content during print/save.
*/

/* Global Site Protection Styles */
.site-protected {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form fields */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

/* Glassy Protection Popup */
.protection-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.7); /* Increased opacity for light mode visibility */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    z-index: 100000;
    color: white;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.protection-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.protection-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.protection-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.protection-popup i.main-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(135deg, #212529, #0c2b5a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.protection-popup h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;
}

.protection-popup p {
    font-size: 16px;
    color:#000000cc;
    line-height: 1.5;
}

/* Mobile Blur Overlay */
.protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Slightly lighter overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: block; /* Always block but control with visibility/opacity */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.protection-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Watermark or overlay (optional, but helps with screenshots) */
.screenshot-protection {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}
