/* ========================================
   IMAGE SECURITY & PROTECTION
   ======================================== */

/* Blur images by default */
.matrimony-profile-image,
.profile-photo-preview,
.gallery-image,
.user-profile-image {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transition: filter 0.3s ease;
}

/* Remove blur on hover */
.matrimony-profile-image:hover,
.profile-photo-preview:hover,
.gallery-image:hover,
.user-profile-image:hover {
    filter: blur(0px);
    -webkit-filter: blur(0px);
}

/* Watermark overlay */
.image-watermark {
    position: relative;
    display: inline-block;
}

.image-watermark::after {
    content: 'Rishta Kumawal Parichay';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    text-align: center;
}

/* Protected image container */
.protected-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.protected-image .watermark-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Lock icon for unverified images */
.image-locked {
    position: relative;
}

.image-locked::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
}

.image-locked::after {
    content: 'Login to View';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 20;
}

/* Restricted access notice */
.image-restricted {
    position: relative;
    background: #f8f9fa;
    border: 2px dashed #dc3545;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.image-restricted::before {
    content: '⚠️ Email Verification Required';
    display: block;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Right-click protection */
.no-copy {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.no-copy img {
    pointer-events: none;
    -webkit-touch-callout: none;
}

/* Responsive blur */
@media (max-width: 768px) {
    .matrimony-profile-image,
    .profile-photo-preview,
    .gallery-image,
    .user-profile-image {
        filter: blur(10px);
        -webkit-filter: blur(10px);
    }
}

/* Print prevention */
@media print {
    .matrimony-profile-image,
    .profile-photo-preview,
    .gallery-image {
        filter: blur(20px) !important;
        -webkit-filter: blur(20px) !important;
    }
    
    .protected-image .watermark-text {
        opacity: 1 !important;
        color: rgba(0, 0, 0, 0.8) !important;
    }
}

/* Animation for verification unlock */
@keyframes unlockImage {
    from {
        filter: blur(8px);
        opacity: 0.8;
    }
    to {
        filter: blur(0px);
        opacity: 1;
    }
}

.image-unlocking {
    animation: unlockImage 0.5s ease;
}
