/* TheAiNexus Offer Popup Styles */
.ta-popup-overlay {
    background: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ta-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.ta-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-width: 420px;
    width: 90%;
    text-align: center;
    cursor: pointer;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.ta-popup-overlay.show .ta-popup {
    transform: scale(1) translateY(0);
}

.ta-popup img {
    width: 100%;
    border-radius: 12px;
    display: block;
    height: auto;
}

.ta-popup #ta-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 1;
}

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

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .ta-popup {
        max-width: 350px;
        width: 95%;
        margin: 10px;
    }
    
    .ta-popup #ta-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        line-height: 26px;
        top: 4px;
        right: 8px;
    }
}

/* Prevent body scroll when popup is open */
body.ta-popup-open {
    overflow: hidden !important;
}

/* Animation keyframes for enhanced effects */
@keyframes ta-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ta-popup-fade-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}
