/**
 * WP Content Shield Pro - Frontend Protection Styles
 */

/* Text Selection Lock */
body.wp-shield-no-select,
body.wp-shield-no-select *:not(input):not(textarea):not([contenteditable="true"]) {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Image & Media Drag Lock */
body.wp-shield-no-drag img,
body.wp-shield-no-drag picture,
body.wp-shield-no-drag svg,
body.wp-shield-no-drag video,
body.wp-shield-no-drag a {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto;
}

/* Protected Image Overlay */
img.wp-shield-protected-img {
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

/* Print Lock */
@media print {
    body.wp-shield-no-print {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ========================================================
   TOAST NOTIFICATION BANNER (Glassmorphism UI)
   ======================================================== */
.wp-shield-toast-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(40px) scale(0.95);
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90vw;
    text-align: center;
}

/* Visible state */
.wp-shield-toast-container.wp-shield-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.wp-shield-toast-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wp-shield-toast-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: wpShieldBounce 0.6s ease;
}

.wp-shield-toast-text {
    display: inline-block;
}

/* --- Themes --- */

/* 1. Dark Modern Theme */
.wp-shield-toast-container.dark {
    background: #111827;
    color: #f9fafb;
    border: 1px solid #374151;
}

/* 2. Light Minimal Theme */
.wp-shield-toast-container.light {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* 3. Glassmorphism Theme */
.wp-shield-toast-container.glass {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 4. Danger Red Alert Theme */
.wp-shield-toast-container.danger {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    border: 1px solid #ef4444;
}

@keyframes wpShieldBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
