/* Popup Notifications for Homepage */

.popup-container {
    position: fixed;
    z-index: 9999;
    max-width: 400px;
}

.popup-container.top-left {
    top: 20px;
    left: 20px;
}

.popup-container.top-right {
    top: 20px;
    right: 20px;
}

.popup-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.popup-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.popup-notification {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(20, 30, 60, 0.95));
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 217, 255, 0.2);
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-out 7.5s forwards;
    transition: all 0.3s ease;
    cursor: pointer;
}

.popup-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 217, 255, 0.4);
    border-color: rgba(0, 217, 255, 0.6);
}

.popup-notification.upgrade {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.popup-notification.upgrade:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.5);
}

.popup-notification.first-ad {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
}

.popup-notification.first-ad:hover {
    border-color: rgba(0, 255, 136, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 136, 0.5);
}

.popup-notification.registration {
    border-color: rgba(255, 0, 128, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 128, 0.3);
}

.popup-notification.registration:hover {
    border-color: rgba(255, 0, 128, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 0, 128, 0.5);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popup-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px currentColor);
    animation: iconPulse 2s ease-in-out infinite;
}

.popup-text {
    flex: 1;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.popup-location {
    color: rgba(136, 204, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.popup-close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.popup-close:hover {
    color: #ffffff;
    background: rgba(255, 0, 128, 0.3);
    transform: scale(1.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-container.top-left,
    .popup-container.top-right {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .popup-container.bottom-left,
    .popup-container.bottom-right {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .popup-notification {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .popup-icon {
        font-size: 1.5rem;
    }
    
    .popup-text {
        font-size: 0.9rem;
    }
    
    .popup-location {
        font-size: 0.8rem;
    }
}

/* Prevent popup overlap */
.popup-notification:nth-child(n+4) {
    display: none;
}