/**
 * Exit-Intent Popup Styles for Schrodingo
 */

/* Overlay */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.exit-intent-overlay.active {
    opacity: 1;
}

/* Popup Container */
.exit-intent-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.exit-intent-overlay.active .exit-intent-popup {
    transform: scale(1) translateY(0);
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.7) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Popup Content */
.exit-popup-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

/* Close Button */
.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.exit-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: rotate(90deg);
}

/* Emoji */
.exit-popup-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Title */
.exit-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Message */
.exit-popup-message {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.exit-popup-message strong {
    color: #4CAF50;
    font-weight: 700;
}

/* Highlight Section */
.exit-popup-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.exit-popup-highlight strong {
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.star-icon {
    font-size: 24px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Benefits List */
.exit-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.exit-popup-benefits li {
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(76, 175, 80, 0.05);
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.exit-popup-benefits li:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(5px);
}

.exit-popup-benefits li i {
    color: #4CAF50;
    font-size: 18px;
    flex-shrink: 0;
}

/* CTA Button */
.exit-popup-cta {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.exit-popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.exit-popup-cta:active {
    transform: translateY(-1px);
}

.exit-popup-cta i {
    font-size: 20px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Secondary Text */
.exit-popup-secondary {
    font-size: 14px;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .exit-popup-content {
        padding: 30px 20px;
    }

    .exit-popup-emoji {
        font-size: 50px;
    }

    .exit-popup-title {
        font-size: 24px;
    }

    .exit-popup-message {
        font-size: 16px;
    }

    .exit-popup-highlight {
        font-size: 18px;
        padding: 15px;
    }

    .exit-popup-highlight strong {
        font-size: 20px;
    }

    .exit-popup-benefits li {
        font-size: 14px;
        padding: 8px 12px;
    }

    .exit-popup-cta {
        font-size: 16px;
        padding: 15px 30px;
    }

    .star-icon {
        font-size: 20px;
    }
}

/* Prevent body scroll when popup is active */
body.exit-popup-active {
    overflow: hidden;
}

/* Additional animation for purchase button pulse */
@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(76, 175, 80, 0.6);
    }
}

/* Smooth scrolling for the page */
html {
    scroll-behavior: smooth;
}
