/* Popup Advertisement Styles - CoinMENA */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dark .popup-content {
    background: #1f2937;
    color: white;
}

.popup-content.popup-show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-content.popup-hide {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
}

.popup-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.dark .popup-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.popup-body {
    text-align: center;
    padding: 1rem 0;
}

.popup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

@keyframes popupEntrance {
    0% {
        transform: scale(0.7) translateY(50px) rotate(-5deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: scale(1.05) translateY(-5px) rotate(2deg);
    }
    100% {
        transform: scale(1) translateY(0) rotate(0deg);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes popupExit {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.7) translateY(-50px) rotate(5deg);
        opacity: 0;
        filter: blur(10px);
    }
}

.popup-entrance {
    animation: popupEntrance 0.5s ease-out;
}

.popup-exit {
    animation: popupExit 0.3s ease-in;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.popup-icon-bounce {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.popup-shimmer {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 2000px 100%;
    animation: shimmer 3s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 640px) {
    .popup-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .popup-body {
        padding: 0.5rem 0;
    }
}

