/* Popup Ads Styling */
.popup-ads-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-ads-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease-in-out;
}

.popup-ads-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.popup-ads-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.popup-ads-close:before,
.popup-ads-close:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #333;
}

.popup-ads-close:before {
    transform: rotate(45deg);
}

.popup-ads-close:after {
    transform: rotate(-45deg);
}

.popup-ads-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-ads-container {
        max-width: 95%;
    }
    
    .popup-ads-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
    }
}