/* WP Firebase Push — Frontend Styles */

#wfpn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wfpn-fade-in 0.25s ease;
}

#wfpn-overlay.wfpn-hide {
    animation: wfpn-fade-out 0.35s ease forwards;
}

#wfpn-popup {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: wfpn-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

#wfpn-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

#wfpn-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.3;
}

#wfpn-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

#wfpn-subscribe {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

#wfpn-subscribe:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

#wfpn-subscribe:active:not(:disabled) {
    transform: translateY(0);
}

#wfpn-subscribe:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

#wfpn-skip {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
    display: block;
    width: 100%;
    margin-top: 4px;
}

#wfpn-skip:hover {
    color: #555;
}

#wfpn-msg {
    margin-top: 12px;
    font-size: 13px;
    min-height: 18px;
    border-radius: 6px;
    padding: 0;
    transition: all 0.2s;
}

#wfpn-msg.wfpn-success {
    color: #27ae60;
    background: #eafaf1;
    padding: 8px 12px;
}

#wfpn-msg.wfpn-error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 8px 12px;
}

@keyframes wfpn-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wfpn-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes wfpn-slide-up {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (max-width: 420px) {
    #wfpn-popup {
        padding: 28px 20px 22px;
        border-radius: 12px;
    }
    #wfpn-title { font-size: 18px; }
}
