/* Popup Advertisement Styles */

.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;
}

.popup-content.popup-show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-content.popup-hide {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
}

/* Enhanced Entrance and Exit Animations */
@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;
        filter: blur(0);
    }
    100% {
        transform: scale(0.7) translateY(-50px) rotate(5deg);
        opacity: 0;
        filter: blur(10px);
    }
}

/* Enhanced Popup Effects */
.popup-content {
    animation: popupEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulse effect for download buttons */
.popup-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

/* "Do not show again" button */
.popup-dont-show-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.popup-dont-show-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
    color: rgba(0, 0, 0, 0.8);
}

.dark .popup-dont-show-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.dark .popup-dont-show-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Shimmer effect for premium popups */
.popup-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.popup-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    text-align: center;
}

.popup-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Design 1: Modern Gradient */
.popup-modern-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.popup-btn-gradient {
    background: white;
    color: #667eea;
}

.popup-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Design 2: Minimal Dark */
.popup-minimal-dark {
    background: #1a1a1a;
    color: white;
}

.popup-btn-dark {
    background: white;
    color: #1a1a1a;
}

.popup-btn-dark:hover {
    background: #f0f0f0;
}

/* Design 3: Card Elegant */
.popup-card-elegant {
    background: white;
    border: 2px solid #e5e7eb;
}

.popup-btn-elegant {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.popup-btn-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
}

/* Design 4: Animated Banner */
.popup-animated-banner {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.popup-icon-bounce {
    font-size: 4rem;
    animation: bounce 2s infinite;
    margin-bottom: 1rem;
}

.popup-btn-animated {
    background: white;
    color: #fa709a;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Design 5: Split Screen */
.popup-split-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    max-width: 600px;
}

.popup-btn-split {
    background: white;
    color: #667eea;
}

.popup-btn-split:hover {
    background: #f0f0f0;
}

/* Design 6: Glassmorphism */
.popup-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #333;
}

.popup-glass-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: rotate 3s linear infinite;
}

.popup-btn-glass {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    backdrop-filter: blur(10px);
}

.popup-btn-glass:hover {
    background: rgba(0, 0, 0, 0.9);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Design 7: Neon Style */
.popup-neon {
    background: #0a0a0a;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px #00ffff, inset 0 0 20px rgba(0, 255, 255, 0.1);
    color: white;
}

.popup-neon-text {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.popup-btn-neon {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

.popup-btn-neon:hover {
    background: #00ffff;
    color: #0a0a0a;
    box-shadow: 0 0 25px #00ffff;
}

/* Design 8: Corporate */
.popup-corporate {
    background: white;
    border-left: 5px solid #2563eb;
}

.popup-btn-corporate {
    background: #2563eb;
    color: white;
    width: 100%;
}

.popup-btn-corporate:hover {
    background: #1d4ed8;
}

/* Design 9: Playful */
.popup-playful {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
}

.popup-bounce-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.popup-bounce-icons span {
    animation: bounce 1s infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.popup-btn-playful {
    background: white;
    color: #ff6b6b;
}

.popup-btn-playful:hover {
    transform: scale(1.1);
}

/* Design 10: Premium */
.popup-premium {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: 3px solid gold;
}

.popup-premium-badge {
    display: inline-block;
    background: gold;
    color: #1e3c72;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.popup-btn-premium {
    background: gold;
    color: #1e3c72;
    border: 2px solid gold;
}

.popup-btn-premium:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Dark Mode Support */
.dark .popup-content:not(.popup-minimal-dark):not(.popup-neon):not(.popup-glass) {
    background: #1a1a1a;
    color: white;
}

.dark .popup-card-elegant {
    background: #1a1a1a;
    border-color: #333;
    color: white;
}

.dark .popup-corporate {
    background: #1a1a1a;
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .popup-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .popup-split-screen .popup-body {
        grid-template-columns: 1fr !important;
    }
    
    .popup-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

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