/* News Email Sender Auto Popup Styles */

.nes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.nes-popup-container {
    background: #fff;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.nes-popup-overlay.nes-show .nes-popup-container {
    transform: scale(1);
}

.nes-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.nes-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.nes-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nes-popup-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.nes-popup-content {
    padding: 25px;
}

.nes-popup-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.nes-subscription-form {
    margin-bottom: 15px;
}

.nes-form-group {
    margin-bottom: 15px;
}

.nes-form-group:last-child {
    margin-bottom: 0;
}

.nes-email-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.nes-email-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.nes-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nes-submit-btn:hover {
    background: #0056b3;
}

.nes-submit-btn:active {
    transform: translateY(1px);
}

.nes-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.nes-never-show {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.nes-never-show input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.nes-popup-message {
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.nes-popup-message.nes-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.nes-popup-message.nes-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Popup Trigger Button */
.nes-popup-trigger {
    position: fixed;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.nes-popup-trigger:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.nes-popup-trigger.nes-bottom-right {
    bottom: 30px;
    right: 30px;
}

.nes-popup-trigger.nes-bottom-left {
    bottom: 30px;
    left: 30px;
}

.nes-popup-trigger.nes-top-right {
    top: 30px;
    right: 30px;
}

.nes-popup-trigger.nes-top-left {
    top: 30px;
    left: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nes-popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .nes-popup-header {
        padding: 15px 20px;
    }
    
    .nes-popup-header h3 {
        font-size: 20px;
    }
    
    .nes-popup-content {
        padding: 20px;
    }
    
    .nes-popup-trigger {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .nes-popup-trigger.nes-bottom-right,
    .nes-popup-trigger.nes-bottom-left {
        bottom: 20px;
    }
    
    .nes-popup-trigger.nes-top-right,
    .nes-popup-trigger.nes-top-left {
        top: 20px;
    }
    
    .nes-popup-trigger.nes-bottom-right,
    .nes-popup-trigger.nes-top-right {
        right: 20px;
    }
    
    .nes-popup-trigger.nes-bottom-left,
    .nes-popup-trigger.nes-top-left {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .nes-popup-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .nes-popup-header {
        border-radius: 0;
    }
    
    .nes-popup-trigger.nes-bottom-right,
    .nes-popup-trigger.nes-bottom-left {
        bottom: 15px;
    }
    
    .nes-popup-trigger.nes-top-right,
    .nes-popup-trigger.nes-top-left {
        top: 15px;
    }
    
    .nes-popup-trigger.nes-bottom-right,
    .nes-popup-trigger.nes-top-right {
        right: 15px;
    }
    
    .nes-popup-trigger.nes-bottom-left,
    .nes-popup-trigger.nes-top-left {
        left: 15px;
    }
}
