/* PushNova Public CSS v1.0.0 */

/* ---- Floating Subscribe Button ---- */
.pushnova-float-btn {
    position: fixed;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pushnova-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}
.pushnova-float-btn.floating_bottom_right { bottom: 24px; right: 24px; }
.pushnova-float-btn.floating_bottom_left  { bottom: 24px; left: 24px; }
.pushnova-float-btn.floating_top_right    { top: 80px; right: 24px; }

/* ---- Opt-in Modal ---- */
#pushnova-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pushnova-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}
.pushnova-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: pn-slide-up 0.3s ease;
}
@keyframes pn-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.pushnova-modal-icon { font-size: 48px; margin-bottom: 16px; }
.pushnova-modal-box h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}
.pushnova-modal-box p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}
.pushnova-modal-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}
.pushnova-modal-box ul li {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}
.pushnova-btn-allow {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.pushnova-btn-allow:hover { background: #1d4ed8; }
.pushnova-btn-deny {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 13px;
    cursor: pointer;
}
.pushnova-btn-deny:hover { color: #64748b; }

/* ---- Inbox Bell ---- */
#pushnova-inbox-bell {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 99998;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    border: 2px solid #e2e8f0;
}
.pn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#pushnova-inbox-dropdown {
    display: none;
    position: fixed;
    top: 136px;
    right: 24px;
    z-index: 99998;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
}
#pushnova-inbox-dropdown.open { display: block; }
.pn-inbox-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.pn-inbox-item:hover   { background: #f8fafc; }
.pn-inbox-item.unread  { background: #eff6ff; }
.pn-inbox-item img     { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.pn-default-icon       { font-size: 28px; flex-shrink: 0; }
.pn-inbox-title        { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 2px; }
.pn-inbox-body         { font-size: 12px; color: #64748b; line-height: 1.4; }
.pn-inbox-time         { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.pn-empty              { padding: 24px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---- Shortcode button ---- */
[data-pushnova-subscribe], [data-pushnova-unsubscribe] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ---- Dark mode ---- */
@media (prefers-color-scheme: dark) {
    .pushnova-modal-box       { background: #1e293b; }
    .pushnova-modal-box h3    { color: #f1f5f9; }
    .pushnova-modal-box p,
    .pushnova-modal-box ul li { color: #94a3b8; }
    #pushnova-inbox-bell       { background: #1e293b; border-color: #334155; }
    #pushnova-inbox-dropdown   { background: #1e293b; border-color: #334155; }
    .pn-inbox-item.unread      { background: #1e3a5f; }
    .pn-inbox-item:hover       { background: #0f172a; }
    .pn-inbox-title            { color: #f1f5f9; }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    #pushnova-inbox-dropdown { right: 8px; left: 8px; width: auto; }
    .pushnova-float-btn      { bottom: 16px; right: 16px; }
}

/* ---- Subscriber options menu ---- */
#pushnova-sub-menu {
    position: fixed;
    z-index: 99998;
    bottom: 80px;
    right: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    min-width: 180px;
    animation: pn-slide-up 0.2s ease;
}
#pushnova-sub-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    cursor: pointer;
    color: #1e293b;
}
#pushnova-sub-menu button:last-child { border-bottom: none; }
#pushnova-sub-menu button:hover { background: #f8fafc; }
