/**
 * security-shield.css — Magnet AI Automation Platform
 * Client-Side Source Code Protection & Legal Warning Overlay Styling
 */

/* Obscure & blur underlying UI when inspection/scraping is detected */
body.security-shield-blur {
    filter: blur(28px) grayscale(70%) !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    overflow: hidden !important;
    transition: filter 0.25s ease-out;
}

/* Fullscreen High-Impact Security Shield Modal Overlay */
#security-shield-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at center, rgba(18, 5, 12, 0.96) 0%, rgba(7, 9, 15, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    animation: secShieldFadeIn 0.3s ease-out forwards;
}

#security-shield-overlay.active {
    display: flex !important;
}

@keyframes secShieldFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Security Modal Box */
.sec-shield-box {
    position: relative !important;
    max-width: 640px !important;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1.5px solid rgba(255, 77, 109, 0.55) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 77, 109, 0.25) !important;
    padding: 36px 32px !important;
    text-align: center !important;
    color: #f8fafc !important;
    box-sizing: border-box !important;
}

/* Pulsing Badge Icon */
.sec-shield-icon-wrap {
    width: 76px !important;
    height: 76px !important;
    margin: 0 auto 20px auto !important;
    background: rgba(255, 77, 109, 0.12) !important;
    border: 2px solid rgba(255, 77, 109, 0.6) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 38px !important;
    animation: secShieldPulse 2s infinite ease-in-out !important;
}

@keyframes secShieldPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(255, 77, 109, 0);
        transform: scale(1.05);
    }
}

/* Header Text */
.sec-shield-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #ff4d6d !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
}

.sec-shield-subtitle {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    margin: 0 0 18px 0 !important;
    letter-spacing: 0.3px !important;
}

/* Warning Card Body */
.sec-shield-legal-card {
    background: rgba(255, 77, 109, 0.08) !important;
    border: 1px solid rgba(255, 77, 109, 0.3) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 0 22px 0 !important;
    text-align: left !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #e2e8f0 !important;
}

.sec-shield-legal-card strong {
    color: #ff758f !important;
}

.sec-shield-instruction {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Live Monitoring Status Bar */
.sec-shield-status-bar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.sec-shield-live-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #ff4d6d !important;
    animation: secShieldDotBlink 1.2s infinite ease-in-out !important;
}

@keyframes secShieldDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Security Toast Notification (For Shortcut / Right-Click Interception) */
#security-shield-toast {
    position: fixed !important;
    bottom: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px) !important;
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1.5px solid rgba(255, 77, 109, 0.6) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 77, 109, 0.25) !important;
    color: #f8fafc !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 12px 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 2147483646 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#security-shield-toast.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}
