/**
 * Exit Intent Popup Styles
 */

.exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-intent-popup.active {
    opacity: 1;
}

.exit-intent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.exit-intent-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.exit-intent-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

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

.exit-intent-header {
    text-align: center;
    margin-bottom: 30px;
}

.exit-intent-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exit-intent-header p {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.exit-intent-games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.exit-intent-game-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.exit-intent-game-card:hover {
    border-color: #667eea;
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.exit-intent-game-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exit-intent-game-info {
    flex: 1;
}

.exit-intent-game-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.exit-intent-game-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.exit-intent-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.exit-intent-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.exit-intent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.exit-intent-checkbox span {
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-intent-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
    }

    .exit-intent-header h2 {
        font-size: 24px;
    }

    .exit-intent-header p {
        font-size: 16px;
    }

    .exit-intent-games {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .exit-intent-game-card {
        padding: 12px;
    }

    .exit-intent-game-img {
        width: 60px;
        height: 60px;
    }

    .exit-intent-game-info h3 {
        font-size: 15px;
    }

    .exit-intent-game-info p {
        font-size: 12px;
    }

    .exit-intent-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

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

    .exit-intent-header h2 {
        font-size: 20px;
    }

    .exit-intent-header p {
        font-size: 14px;
    }

    .exit-intent-game-card {
        gap: 10px;
        padding: 10px;
    }

    .exit-intent-game-img {
        width: 50px;
        height: 50px;
    }

    .exit-intent-game-info h3 {
        font-size: 14px;
    }

    .exit-intent-game-info p {
        display: none; /* Hide descriptions on very small screens */
    }
}

/* Smooth scrollbar for popup content */
.exit-intent-content::-webkit-scrollbar {
    width: 8px;
}

.exit-intent-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.exit-intent-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.exit-intent-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Accessibility */
.exit-intent-close:focus,
.exit-intent-game-card:focus,
.exit-intent-checkbox:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animation for game cards */
.exit-intent-game-card {
    animation: fadeInCard 0.5s ease-out forwards;
    opacity: 0;
}

.exit-intent-game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.exit-intent-game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.exit-intent-game-card:nth-child(3) {
    animation-delay: 0.3s;
}

.exit-intent-game-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
