/* EllenWhiteAudio Donation Notifier - Frontend Styles */

/* Modal Base */
.ewa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.ewa-modal.ewa-show {
    display: block;
    animation: ewaFadeIn 0.3s ease-in-out;
}

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

.ewa-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ewa-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: ewaSlideUp 0.3s ease-out;
}

/* Modal Header */
.ewa-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s;
}

.ewa-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.ewa-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.ewa-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #c41e3a;
    animation: ewaHeartbeat 1.5s ease-in-out infinite;
}

.ewa-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Modal Body */
.ewa-modal-body {
    margin-bottom: 32px;
}

.ewa-modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px;
}

.ewa-currency-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #6c757d;
    border-radius: 4px;
    font-size: 14px;
    color: #6c757d;
}

.ewa-currency-notice svg {
    flex-shrink: 0;
}

/* Modal Footer */
.ewa-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ewa-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.ewa-btn-primary {
    background: #c41e3a;
    color: #ffffff;
}

.ewa-btn-primary:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.ewa-btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.ewa-btn-secondary:hover {
    background: #f8f9fa;
    color: #333;
}

.ewa-modal-privacy {
    text-align: center;
    margin-top: 16px;
    color: #999;
    font-size: 13px;
}

/* Push Notification Banner */
.ewa-push-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 380px;
    z-index: 999998;
    display: none;
    animation: ewaSlideLeft 0.3s ease-out;
}

.ewa-push-banner.ewa-show {
    display: block;
}

.ewa-push-content {
    display: flex;
    gap: 16px;
}

.ewa-push-icon {
    flex-shrink: 0;
    color: #c41e3a;
}

.ewa-push-text p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.ewa-push-actions {
    display: flex;
    gap: 8px;
}

.ewa-push-allow,
.ewa-push-dismiss {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ewa-push-allow {
    background: #c41e3a;
    color: #ffffff;
}

.ewa-push-allow:hover {
    background: #a01729;
}

.ewa-push-dismiss {
    background: transparent;
    color: #666;
}

.ewa-push-dismiss:hover {
    background: #f0f0f0;
}

/* Animations */
@keyframes ewaFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes ewaSlideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ewaHeartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .ewa-modal-content {
        padding: 28px 20px;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .ewa-modal-title {
        font-size: 22px;
    }
    
    .ewa-modal-message {
        font-size: 15px;
    }
    
    .ewa-push-banner {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .ewa-btn {
        font-size: 15px;
        padding: 12px 24px;
    }
}

/* Accessibility */
.ewa-modal-close:focus,
.ewa-btn:focus,
.ewa-push-allow:focus,
.ewa-push-dismiss:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Print - hide modal */
@media print {
    .ewa-modal,
    .ewa-push-banner {
        display: none !important;
    }
}
