/**
 * Exit Popup Component v1 - Styles
 * Standalone CSS for the exit intent popup
 */

/* CSS Variables for customization */
:root {
    --exit-popup-primary: #FF3366;
    --exit-popup-primary-hover: #FF1A4D;
    --exit-popup-success: #00C896;
    --exit-popup-warning: #FFB800;
    --exit-popup-text-dark: #1A1A2E;
    --exit-popup-text-light: #6C6C80;
    --exit-popup-bg-light: #F8F9FA;
    --exit-popup-border: #E5E7EB;
    --exit-popup-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* Active state */
.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.exit-popup-modal {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--exit-popup-shadow);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal active animation */
.exit-popup-overlay.active .exit-popup-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Close Button */
.exit-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--exit-popup-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exit-popup-close:hover {
    background: rgba(255, 51, 102, 0.1);
    color: var(--exit-popup-primary);
    transform: rotate(90deg);
}

/* Content Container */
.exit-popup-content {
    padding: 40px 30px;
    text-align: center;
}

/* Header Section */
.exit-popup-header {
    margin-bottom: 25px;
}

.exit-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

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

/* Title */
.exit-popup-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--exit-popup-primary);
    margin: 15px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Special highlight for GRÁTIS */
.exit-title-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1A1A2E;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 36px;
    font-weight: 900;
    transform: rotate(-2deg);
    margin: 0 4px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    animation: pulse-highlight 2s infinite;
    position: relative;
}

@keyframes pulse-highlight {
    0% {
        transform: rotate(-2deg) scale(1);
    }
    50% {
        transform: rotate(-2deg) scale(1.05);
    }
    100% {
        transform: rotate(-2deg) scale(1);
    }
}

/* Main Content Area */
.exit-main-content {
    padding: 20px 0;
    margin: 20px 0;
}

/* Subtitle Quote */
.exit-subtitle {
    font-size: 16px;
    line-height: 1.4;
    color: var(--exit-popup-text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.exit-subtitle strong {
    font-weight: 600;
    color: var(--exit-popup-text-dark);
    font-size: 16px;
}

/* Explanation Section */
.exit-explanation {
    background: var(--exit-popup-bg-light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.exit-reason {
    font-size: 15px;
    line-height: 1.6;
    color: var(--exit-popup-text-dark);
    margin-bottom: 15px;
    text-align: left;
}

.exit-promise {
    font-size: 15px;
    line-height: 1.6;
    color: var(--exit-popup-text-dark);
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--exit-popup-border);
    text-align: left;
}

.exit-personal {
    color: var(--exit-popup-text-light);
    font-size: 14px;
    font-style: italic;
}

.exit-value {
    font-size: 16px;
    line-height: 1.6;
    color: var(--exit-popup-text-dark);
    font-weight: 600;
    margin-bottom: 0;
    text-align: center;
}

.exit-price-note {
    color: var(--exit-popup-text-light);
    font-size: 14px;
    font-weight: normal;
}

/* Removed bonus section - no longer needed */

/* Removed timer section - no longer needed */

/* CTA Button */
.exit-cta-button {
    background: #666666;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    margin: 25px auto 15px;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: 0.3px;
}

.exit-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.exit-cta-button:hover {
    background: linear-gradient(135deg, var(--exit-popup-primary) 0%, #FF1A4D 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.exit-cta-button:hover::before {
    left: 100%;
}

.exit-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.3);
}

/* Removed disclaimer - no longer needed */

/* Urgency Animation */
.exit-popup-modal.urgent {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Scrollbar Styling */
.exit-popup-modal::-webkit-scrollbar {
    width: 8px;
}

.exit-popup-modal::-webkit-scrollbar-track {
    background: var(--exit-popup-bg-light);
    border-radius: 4px;
}

.exit-popup-modal::-webkit-scrollbar-thumb {
    background: var(--exit-popup-border);
    border-radius: 4px;
}

.exit-popup-modal::-webkit-scrollbar-thumb:hover {
    background: var(--exit-popup-text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-popup-modal {
        margin: 10px;
        max-width: calc(100vw - 40px);
    }

    .exit-popup-content {
        padding: 30px 20px;
    }

    .exit-popup-title {
        font-size: 24px;
    }

    .exit-discount-value {
        font-size: 28px;
    }

    .exit-price-new {
        font-size: 20px;
    }

    .exit-cta-button {
        font-size: 16px;
        padding: 16px 30px;
    }

    .exit-emoji {
        font-size: 40px;
    }

    .exit-timer {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .exit-popup-content {
        padding: 25px 15px;
    }

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

    .exit-offer-box {
        padding: 20px 15px;
    }

    .exit-bonus {
        padding: 15px;
    }

    .exit-cta-button {
        font-size: 15px;
        padding: 15px 25px;
    }
}

/* Print Styles */
@media print {
    .exit-popup-overlay {
        display: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .exit-popup-overlay,
    .exit-popup-modal,
    .exit-cta-button,
    .exit-popup-close {
        transition: none;
    }

    .exit-emoji,
    .exit-discount-value,
    .exit-timer-icon {
        animation: none;
    }
}