/**
 * LC Award Management Image Protection CSS
 * 
 * Applies CSS-based protection techniques to prevent award image copying
 * Unique class names to avoid theme/plugin conflicts
 * Version: 2.5.0
 */

/* Prevent image selection */
.lc-award-no-select {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Disable drag-and-drop on images */
.lc-award-no-drag {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Position the protection overlay with proper centering */
.lc-award-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

/* Create the overlay layer that blocks direct interaction */
.lc-award-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background-color: transparent;
    cursor: default;
}

/* Maximum height control for portrait images with centering */
.lc-award-featured-image.lc-height-controlled {
    max-height: 800px; /* Default - will be overridden by admin setting */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for height control */
@media (max-width: 768px) {
    .lc-award-featured-image.lc-height-controlled {
        max-height: 60vh;
    }
}

/* Protection message overlay */
.lc-protection-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 400px;
    text-align: center;
    animation: lcFadeIn 0.3s ease;
}

@keyframes lcFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.lc-protection-message .lc-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.lc-protection-message .lc-close-btn:hover {
    opacity: 0.7;
}