/* Alea Newsletter Popup Styles */

.alea-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alea-popup-overlay.alea-popup-show {
    opacity: 1;
    visibility: visible;
}

.alea-popup-container {
    position: relative;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alea-popup-overlay.alea-popup-show .alea-popup-container {
    transform: scale(1) translateY(0);
}

.alea-popup-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.alea-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

.alea-popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #374151;
    transform: scale(1.1);
}

.alea-popup-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, #eac966 0%, #FF6719 100%);
    color: white;
    position: relative;
}

.alea-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.alea-popup-header h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.alea-popup-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
}

.alea-popup-body {
    padding: 32px;
    text-align: center;
}

.alea-popup-icon {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF6719 0%, #FF6719 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    /*animation: pulse 2s infinite;*/
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    }
}

.alea-popup-question {
    font-size: 18px;
    color: #374151;
    margin: 0 0 32px;
    line-height: 1.6;
    font-weight: 500;
}

.alea-popup-buttons {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.alea-popup-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.alea-popup-btn:hover::before {
    left: 100%;
}

.alea-popup-btn-yes {
    background: linear-gradient(135deg, #b97f10 0%, #FF6719 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(185, 111, 16, 0.3);
}

.alea-popup-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(185, 111, 16, 0.4);
}

.alea-popup-btn-no {
    background: #f9fafb;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.alea-popup-btn-no:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .alea-popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .alea-popup-header {
        padding: 24px 24px 20px;
    }
    
    .alea-popup-header h2 {
        font-size: 20px;
    }
    
    .alea-popup-header p {
        font-size: 14px;
    }
    
    .alea-popup-body {
        padding: 24px;
    }
    
    .alea-popup-question {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .alea-popup-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .alea-popup-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .alea-popup-question {
        color: #e5e7eb;
    }
    
    .alea-popup-btn-no {
        background: #374151;
        color: #d1d5db;
        border-color: #4b5563;
    }
    
    .alea-popup-btn-no:hover {
        background: #4b5563;
        color: #f3f4f6;
        border-color: #6b7280;
    }
}

/* Accessibility */
.alea-popup-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.alea-popup-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .alea-popup-overlay,
    .alea-popup-container,
    .alea-popup-btn,
    .alea-popup-close {
        transition: none;
    }
    
    .alea-popup-icon {
        animation: none;
    }
    
    .alea-popup-btn::before {
        display: none;
    }
}

