/* Popup Container */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* Popup Content */
.popup-content {
    position: relative;
    background: white;
    border-radius: 15px;
    border: 0.5px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

/* Popup Image */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .popup-content {
        max-width: 500px;
        max-height: 600px;
    }
    
    .popup-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .popup-content {
        max-width: 95%;
        max-height: 80%;
        margin: 20px;
    }
    
    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
        top: 8px;
        right: 12px;
    }
}

/* Animation for mobile touch */
@media (hover: none) and (pointer: coarse) {
    .popup-close:active {
        transform: scale(0.95);
        background: rgba(240, 240, 240, 1);
    }
}

/* Loading animation */
.popup-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 