/**
 * BetterHalf - Profile Photo Shield & Anti-Theft Styles
 * Protects profile pictures from right-click save, dragging, copying and printing.
 */
/* Global image drag prevention & touch callout */
img {
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
}
/* Relative positioning and selection blocking for profile photo containers */
.protected-photo-container,
.profile-avatar-wrap,
.profile-col-avatar,
.match-result .avatar-wrap {
    position: relative !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important; /* iOS long press save prevention */
}

/* Make images non-draggable and click-transparent */
.protected-photo,
.profile-thumb-img,
.profile-avatar-wrap img,
.protected-photo-container img,
img.profile-protected {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    filter: none;
    transition: filter 0.2s ease-in-out;
}

/* Transparent shield layer that sits over the photo */
.photo-shield {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 8 !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: auto !important;
}

/* Circular shield support when applied to round avatars */
.photo-shield.rounded-circle,
.profile-avatar-wrap .photo-shield {
    border-radius: 50% !important;
}

/* Print protection: hide profile pictures when user triggers browser print (Ctrl+P) */
@media print {
    .protected-photo,
    .profile-thumb-img,
    .profile-avatar-wrap,
    .protected-photo-container,
    .profile-section img.img-fluid {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Subtle protection watermark overlay badge or pattern on the shield */
.photo-shield::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.06) 100%);
}

/* Privacy Toast notification when user attempts screenshot (PrintScreen) or right click */
.photo-privacy-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999999;
    background: rgba(22, 10, 10, 0.94);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(240, 165, 0, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.photo-privacy-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.photo-privacy-toast i {
    color: #f0a500;
    font-size: 18px;
}
