/**
 * Exit Intent Popup Styles - BudgetZen.ch
 */

.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 550px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.exit-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
}

.exit-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.exit-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: pulse-scale 2s infinite;
}

.exit-popup-icon i {
    font-size: 40px;
    color: white;
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.exit-popup-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px;
    line-height: 1.2;
}

.exit-popup-subtitle {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 30px;
    line-height: 1.5;
}

.exit-popup-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
}

.exit-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    text-align: left;
}

.exit-benefit:last-child {
    margin-bottom: 0;
}

.exit-benefit i {
    color: #10b981;
    font-size: 20px;
    flex-shrink: 0;
}

.exit-benefit span {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
}

.exit-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.exit-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.exit-popup-cta i {
    font-size: 20px;
}

.exit-popup-footer {
    font-size: 13px;
    color: #718096;
    margin: 20px 0 0;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .exit-popup-content {
        padding: 40px 25px;
        max-width: 95%;
    }
    
    .exit-popup-title {
        font-size: 26px;
    }
    
    .exit-popup-subtitle {
        font-size: 16px;
    }
    
    .exit-popup-icon {
        width: 70px;
        height: 70px;
    }
    
    .exit-popup-icon i {
        font-size: 35px;
    }
    
    .exit-benefit {
        gap: 10px;
    }
    
    .exit-benefit span {
        font-size: 14px;
    }
    
    .exit-popup-cta {
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .exit-popup-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .exit-popup-content {
        padding: 30px 20px;
    }
    
    .exit-popup-title {
        font-size: 22px;
    }
    
    .exit-popup-subtitle {
        font-size: 15px;
    }
    
    .exit-popup-benefits {
        padding: 20px 15px;
    }
    
    .exit-benefit span {
        font-size: 13px;
    }
    
    .exit-popup-cta {
        font-size: 15px;
        padding: 14px 25px;
    }
    
    .exit-popup-footer {
        font-size: 12px;
    }
}
