/* Glassmorphism Subscription Widget - EgyMonitor */

.eme-glass-widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 450px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    direction: rtl;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.eme-glass-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Dark Mode Support via prefers-color-scheme */
@media (prefers-color-scheme: dark) {
    .eme-glass-widget {
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }
    .eme-glass-widget::before {
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    }
    .eme-title, .eme-desc {
        color: #ffffff;
    }
    #eme-email {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.15);
        color: #fff;
    }
    #eme-email::placeholder {
        color: rgba(255,255,255,0.5);
    }
}

.eme-title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.eme-desc {
    margin: 0 0 25px;
    font-size: 15px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.eme-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

#eme-email {
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    padding: 0 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    color: inherit !important;
    font-size: 15px !important;
    outline: none !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#eme-email:focus {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.eme-btn {
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-family: inherit !important;
}

.eme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.eme-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#eme-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.4s ease forwards;
}

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

.eme-success {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.eme-error {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}
