/* WP Push Master – Opt-In Styles (Button + Popup) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════════
   A) [wppush_subscribe] BUTTON
══════════════════════════════════════════════════════ */

.wppush-subscribe-wrap {
    display: inline-block;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* --- Basis-Button --- */
.wppush-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}

.wppush-subscribe-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.15s;
}
.wppush-subscribe-btn:hover::after { background: rgba(255,255,255,0.08); }
.wppush-subscribe-btn:active { transform: scale(0.97); }
.wppush-subscribe-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.wppush-sub-icon { font-size: 1.15em; line-height: 1; flex-shrink: 0; }

/* ── Style: pill (Standard) ── */
.wppush-btn-style-pill .wppush-subscribe-btn {
    background: #6c47ff;
    color: #fff;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(108,71,255,0.35);
}
.wppush-btn-style-pill .wppush-subscribe-btn:hover {
    box-shadow: 0 6px 28px rgba(108,71,255,0.5);
    transform: translateY(-2px);
}
.wppush-btn-style-pill .wppush-subscribe-btn.wppush-subscribed {
    background: #22222e;
    color: #aaa;
    box-shadow: none;
    border: 1.5px solid rgba(255,255,255,0.12);
}
.wppush-btn-style-pill .wppush-subscribe-btn.wppush-blocked {
    background: #2a1a1a;
    color: #ff5272;
    box-shadow: none;
    border: 1.5px solid rgba(255,82,114,0.25);
    cursor: default;
}

/* ── Style: box ── */
.wppush-btn-style-box .wppush-subscribe-btn {
    background: linear-gradient(135deg, #6c47ff 0%, #00cfb4 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(108,71,255,0.3);
    font-size: 1.05rem;
}
.wppush-btn-style-box .wppush-subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(108,71,255,0.4);
}
.wppush-btn-style-box .wppush-subscribe-btn.wppush-subscribed {
    background: #f0f0f5;
    color: #555;
    box-shadow: none;
}

/* ── Style: minimal ── */
.wppush-btn-style-minimal .wppush-subscribe-btn {
    background: transparent;
    color: #6c47ff;
    padding: 10px 0;
    border-radius: 0;
    border-bottom: 2px solid #6c47ff;
    box-shadow: none;
    gap: 8px;
}
.wppush-btn-style-minimal .wppush-subscribe-btn:hover {
    color: #4a2dcc;
    border-color: #4a2dcc;
    transform: none;
}
.wppush-btn-style-minimal .wppush-subscribe-btn.wppush-subscribed {
    color: #888;
    border-color: #ccc;
}

/* ── Status-Text ── */
.wppush-sub-status {
    margin-top: 10px;
    font-size: 0.875rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    padding: 8px 14px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}
.wppush-status-success { background: rgba(0,207,180,0.12); color: #00a896; display: block; }
.wppush-status-error   { background: rgba(255,82,114,0.12); color: #e03050; display: block; }
.wppush-status-warn    { background: rgba(255,179,68,0.12);  color: #b07000; display: block; }


/* ══════════════════════════════════════════════════════
   B) AUTOMATISCHES POPUP
══════════════════════════════════════════════════════ */

/* Overlay */
.wppush-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}
.wppush-popup-overlay-visible { opacity: 1; }

/* Popup Container */
.wppush-popup {
    position: fixed;
    z-index: 99999;
    bottom: 32px;
    right: 32px;
    width: 360px;
    max-width: calc(100vw - 32px);
    font-family: 'DM Sans', system-ui, sans-serif;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
    pointer-events: none;
}
.wppush-popup-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Popup Innen */
.wppush-popup-inner {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    text-align: center;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .wppush-popup-inner {
        background: #1a1a23;
        box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    }
    .wppush-popup-title { color: #f0f0f8 !important; }
    .wppush-popup-text  { color: #9999aa !important; }
    .wppush-popup-note  { color: #55555f !important; }
    .wppush-popup-close { color: #555 !important; }
    .wppush-popup-close:hover { background: #2a2a35 !important; color: #aaa !important; }
    .wppush-popup-btn-no { background: #2a2a35 !important; color: #9999aa !important; }
    .wppush-popup-btn-no:hover { background: #333340 !important; }
}

/* Schließen-Button */
.wppush-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.wppush-popup-close:hover { background: #f0f0f5; color: #333; }

/* Icon */
.wppush-popup-icon { margin: 0 auto 16px; }
.wppush-popup-icon img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.wppush-popup-icon-emoji { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.wppush-popup-success-icon { font-size: 3.5rem; margin-bottom: 12px; animation: wppush-bounce 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes wppush-bounce {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Texte */
.wppush-popup-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.3;
}
.wppush-popup-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 22px;
    line-height: 1.5;
}
.wppush-popup-note {
    font-size: 0.75rem;
    color: #bbb;
    margin: 14px 0 0;
}

/* Buttons */
.wppush-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wppush-popup-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.wppush-popup-btn-yes {
    background: #6c47ff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(108,71,255,0.35);
}
.wppush-popup-btn-yes:hover {
    background: #5535ee;
    box-shadow: 0 6px 22px rgba(108,71,255,0.5);
    transform: translateY(-1px);
}
.wppush-popup-btn-no {
    background: #f0f0f5;
    color: #888;
}
.wppush-popup-btn-no:hover { background: #e5e5ec; color: #555; }

/* Mobile */
@media (max-width: 480px) {
    .wppush-popup {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
    .wppush-popup-inner {
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 32px;
    }
    .wppush-popup-visible { transform: translateY(0) scale(1); }
    .wppush-popup         { transform: translateY(100%); }
}
