/* 
   QUANTUM PARANOIA: SECURITY LAYER
   Version: 2.0 (Stealth Mode + Full Coverage)
*/

/* --- 1. BLUR SHIELD (Anti-Snooping) --- */

/* 
   Логика: Размываем ВСЕ прямые потомки body, 
   КРОМЕ шторки безопасности (#security-curtain) 
   и контейнера водяных знаков (.quantum-watermark-container).
   Это гарантированно покрывает Sidebar, Content и любые модалки.
*/
body.quantum-blurred > *:not(#security-curtain):not(.quantum-watermark-container) {
    filter: blur(15px) grayscale(100%) !important;
    pointer-events: none; /* Блокируем клики */
}

/* Убираем плавность для МГНОВЕННОЙ реакции (против скриншотеров) */
body.quantum-blurred #page-content,
body.quantum-blurred .sidebar {
    transition: none !important; 
}

/* --- 2. SECURITY CURTAIN --- */
#security-curtain {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647; /* Максимальный Z-Index */
    background: rgba(0, 0, 0, 0.6); /* Затемнение */
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

body.quantum-blurred #security-curtain {
    display: flex;
}

.security-msg {
    color: #ff4444;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-align: center;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    background: #000;
    padding: 40px 80px;
    border: 2px solid #ff4444;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.4);
    border-radius: 0; /* Строгий стиль */
}

/* --- 3. SMART WATERMARKS (Stealth Mode) --- */
.quantum-watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2147483646; /* Сразу под шторкой */
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    
    /* СКРЫТО ПО УМОЛЧАНИЮ (По требованию) */
    opacity: 0; 
    transition: opacity 0.1s ease-in;
}

/* ПОЯВЛЯЕТСЯ ТОЛЬКО ПРИ БЛОКИРОВКЕ */
body.quantum-blurred .quantum-watermark-container {
    opacity: 0.4; /* Достаточно ярко, чтобы испортить фото */
}

.watermark-tile {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-30deg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
    white-space: pre-line;
    text-align: center;
}

/* --- 4. PRINT HIJACK --- */
@media print {
    body { display: none !important; }
}
