/* Premium Push Notification CSS */

:root {
    --wp-push-bell-size: 56px;
    --wp-push-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wp-push-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    --wp-push-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Floating Bell Widget */
.wp-push-bell-container {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wp-push-transition);
}

.wp-push-bell-container.bottom-right {
    right: 30px;
}

.wp-push-bell-container.bottom-left {
    left: 30px;
}

.wp-push-bell-button {
    width: var(--wp-push-bell-size);
    height: var(--wp-push-bell-size);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wp-push-shadow);
    transition: var(--wp-push-transition);
    position: relative;
    outline: none;
    padding: 0;
}

.wp-push-bell-button:hover {
    transform: scale(1.1);
    box-shadow: var(--wp-push-shadow-hover);
}

.wp-push-bell-button svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
    transition: var(--wp-push-transition);
}

/* Bell Ringing/Tilting Micro-animation */
@keyframes wpPushBellRing {
    0% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-4deg); }
    100% { transform: rotate(0); }
}

.wp-push-bell-container:hover .wp-push-bell-button svg {
    animation: wpPushBellRing 1s ease-in-out infinite;
}

/* Subscription Status Dots */
.wp-push-bell-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    transition: var(--wp-push-transition);
}

.wp-push-bell-status-dot.subscribed {
    background-color: #10b981; /* Green */
}

.wp-push-bell-status-dot.unsubscribed {
    background-color: #ef4444; /* Red */
    animation: wpPushPulse 2s infinite;
}

@keyframes wpPushPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Slide-in Opt-in Banner */
.wp-push-banner {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 999998;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--wp-push-transition);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-push-banner.show {
    bottom: 30px;
}

.wp-push-banner-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wp-push-banner-icon-wrapper {
    background: #e0e7ff;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.wp-push-banner-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.wp-push-banner-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    font-weight: 500;
}

.wp-push-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wp-push-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--wp-push-transition);
}

.wp-push-btn-secondary {
    background: transparent;
    color: #4b5563;
}

.wp-push-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.wp-push-btn-primary {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.wp-push-btn-primary:hover {
    background: #4f46e5;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

/* Tooltip overlay on Bell */
.wp-push-bell-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--wp-push-transition);
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wp-push-bell-container.bottom-right .wp-push-bell-tooltip {
    right: 0;
}

.wp-push-bell-container.bottom-left .wp-push-bell-tooltip {
    left: 0;
}

.wp-push-bell-container:hover .wp-push-bell-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {
    :root {
        --wp-push-bell-size: 52px;
    }

    .wp-push-bell-container {
        bottom: 20px;
    }

    .wp-push-bell-container.bottom-left {
        left: 18px;
    }

    .wp-push-bell-container.bottom-right {
        right: 18px;
    }

    body.wp-push-banner-visible .wp-push-bell-container {
        bottom: 190px;
    }

    .wp-push-banner {
        bottom: -220px;
        width: calc(100% - 28px);
        padding: 16px;
    }

    .wp-push-banner.show {
        bottom: 16px;
    }
}
