/**
 * EXIT INTENT POPUP STYLES
 * Premium engagement popup design
 */

.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#exitIntentPopup.active .exit-popup-overlay {
    opacity: 1;
}

.exit-popup-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#exitIntentPopup.active .exit-popup-content {
    transform: scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 10;
}

.exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: rotate(90deg);
}

.exit-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.exit-popup-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.exit-popup-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.exit-popup-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exit-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-size: 1rem;
}

.exit-benefit i {
    color: var(--success-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.exit-popup-offer {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.offer-text {
    color: var(--text-main);
    font-size: 1.1rem;
    margin: 0;
}

.offer-text strong {
    color: var(--primary);
    font-weight: 800;
}

.exit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-exit-primary,
.btn-exit-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-exit-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 25px -5px rgba(118, 75, 162, 0.4);
}

.btn-exit-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(118, 75, 162, 0.6);
}

.btn-exit-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-exit-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.exit-popup-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.exit-popup-footer i {
    color: var(--success-color);
}

/* Job Alert Form */
.job-alert-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.job-alert-form input,
.job-alert-form select {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.job-alert-form input:focus,
.job-alert-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.job-alert-form select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-popup-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .exit-popup-title {
        font-size: 1.5rem;
    }

    .exit-popup-subtitle {
        font-size: 1rem;
    }

    .exit-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .exit-benefit {
        font-size: 0.9rem;
    }

    .btn-exit-primary,
    .btn-exit-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .exit-popup-overlay,
    .exit-popup-content,
    .exit-popup-close,
    .btn-exit-primary,
    .btn-exit-secondary {
        transition: none;
    }

    .exit-popup-icon,
    .offer-badge {
        animation: none;
    }
}