/* 
 * Full-Screen Deal Image Viewer Styles
 * Used to display deal images in a full-screen modal
 */

 .deal-image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.deal-image-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.deal-image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000000;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    line-height: 1;
}

.deal-image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.deal-image-viewer-close:active {
    transform: scale(0.95);
}

.deal-image-viewer-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.deal-image-viewer-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.deal-image-viewer-overlay.active .deal-image-viewer-img {
    transform: scale(1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .deal-image-viewer-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 36px;
        background-color: rgba(0, 0, 0, 0.6);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .deal-image-viewer-img {
        border-radius: 8px;
        max-width: 95vw;
        max-height: 90vh;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease-out; /* For swipe animations */
    }
    
    .deal-image-viewer-content {
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .deal-image-viewer-hint {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 16px;
        border-radius: 20px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        pointer-events: none;
        opacity: 0;
        animation: fadeInOut 3s ease-in-out forwards;
        animation-delay: 0.5s;
    }
    
    @keyframes fadeInOut {
        0% { opacity: 0; transform: translate(-50%, 10px); }
        20% { opacity: 1; transform: translate(-50%, 0); }
        80% { opacity: 1; transform: translate(-50%, 0); }
        100% { opacity: 0; transform: translate(-50%, -10px); }
    }
}
