/* ============================================================
   HACK PLAY STORE — Push Notification Widget
   Scoped under .hpn- so it never leaks into / clashes with the
   site's light Play-Store theme in assets/css/style.css.
   ============================================================ */

:root {
    --hpn-bg: #0b0f0d;
    --hpn-surface: #121815;
    --hpn-surface-alt: #182420;
    --hpn-border: #1f2e28;
    --hpn-neon: #39ff88;
    --hpn-neon-soft: rgba(57, 255, 136, 0.12);
    --hpn-neon-glow: rgba(57, 255, 136, 0.35);
    --hpn-text: #eafff2;
    --hpn-muted: #8ea79a;
    --hpn-danger: #ff5d6c;
    --hpn-radius-lg: 20px;
    --hpn-radius-md: 14px;
    --hpn-radius-full: 999px;
}

/* ---------- Section card ---------- */
.hpn-widget--section {
    position: relative;
    overflow: hidden;
    background: var(--hpn-bg);
    border: 1px solid var(--hpn-border);
    border-radius: var(--hpn-radius-lg);
    margin: 20px 0 28px;
    padding: 1px; /* lets the glow sit at the very edge */
}

.hpn-widget__glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--hpn-neon-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hpn-widget__body {
    position: relative;
    padding: 28px;
    border-radius: var(--hpn-radius-lg);
}

.hpn-widget__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.hpn-widget__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    background: var(--hpn-neon-soft);
    border: 1px solid var(--hpn-neon);
    border-radius: var(--hpn-radius-md);
    flex-shrink: 0;
}

.hpn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.hpn-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.hpn-widget__logo.hpn-icon svg {
    width: 22px;
    height: 22px;
}

.hpn-btn .hpn-icon svg {
    width: 16px;
    height: 16px;
}

.hpn-float__icon svg {
    width: 22px;
    height: 22px;
}

.hpn-widget__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hpn-neon);
}

.hpn-widget__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--hpn-text);
    font-family: var(--font-display, inherit);
}

.hpn-widget__copy {
    margin: 0 0 18px;
    color: var(--hpn-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 480px;
}

.hpn-widget__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hpn-muted);
    background: var(--hpn-surface);
    border: 1px solid var(--hpn-border);
    border-radius: var(--hpn-radius-full);
    padding: 7px 14px;
    width: fit-content;
    margin-bottom: 18px;
}

.hpn-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hpn-muted);
    flex-shrink: 0;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hpn-status-dot[data-state="subscribed"] { background: var(--hpn-neon); box-shadow: 0 0 8px var(--hpn-neon-glow); }
.hpn-status-dot[data-state="blocked"] { background: var(--hpn-danger); box-shadow: 0 0 8px rgba(255, 93, 108, 0.4); }
.hpn-status-dot[data-state="pending"] { background: #f9c74f; }
.hpn-status-dot[data-state="loading"] { background: var(--hpn-muted); animation: hpn-pulse 1.2s ease-in-out infinite; }

@keyframes hpn-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.hpn-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hpn-widget__actions--stack {
    flex-direction: column;
}

.hpn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--hpn-radius-full);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    font-family: inherit;
}

.hpn-btn:active { transform: scale(0.97); }
.hpn-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hpn-btn--primary {
    background: var(--hpn-neon);
    color: #04150c;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.hpn-btn--primary:not(:disabled):hover {
    box-shadow: 0 0 18px var(--hpn-neon-glow);
}

.hpn-btn--ghost {
    background: transparent;
    color: var(--hpn-text);
    border: 1px solid var(--hpn-border);
}
.hpn-btn--ghost:not(:disabled):hover {
    border-color: var(--hpn-neon);
    color: var(--hpn-neon);
}

.hpn-widget__message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--hpn-radius-md);
    font-size: 13px;
    font-weight: 600;
}
.hpn-widget__message--success {
    background: var(--hpn-neon-soft);
    color: var(--hpn-neon);
    border: 1px solid var(--hpn-neon);
}
.hpn-widget__message--error {
    background: rgba(255, 93, 108, 0.1);
    color: var(--hpn-danger);
    border: 1px solid var(--hpn-danger);
}
.hpn-widget__message--info {
    background: var(--hpn-surface-alt);
    color: var(--hpn-muted);
    border: 1px solid var(--hpn-border);
}

.hpn-debug-toggle {
    margin-top: 14px;
    background: transparent;
    border: none;
    color: var(--hpn-muted);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0;
}
.hpn-debug-toggle:hover { color: var(--hpn-neon); }

.hpn-debug-box {
    margin-top: 8px;
    background: #050a07;
    border: 1px solid var(--hpn-border);
    border-radius: var(--hpn-radius-md);
    padding: 12px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--hpn-neon);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 260px;
    overflow-y: auto;
}

.onesignal-customlink-container {
    margin-top: 14px;
}

@media (max-width: 640px) {
    .hpn-widget__body { padding: 20px; }
    .hpn-widget__title { font-size: 19px; }
    .hpn-btn { width: 100%; }
    .hpn-widget__actions { flex-direction: column; }
}

/* ---------- Floating bell ---------- */
.hpn-float {
    position: fixed;
    right: 18px;
    bottom: 84px; /* clears the site's mobile bottom-nav */
    z-index: 900;
}

@media (min-width: 900px) {
    .hpn-float { bottom: 24px; }
}

.hpn-float__btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--hpn-bg);
    border: 1px solid var(--hpn-neon);
    color: var(--hpn-neon);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 rgba(0,0,0,0);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hpn-float__btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 16px var(--hpn-neon-glow); }
.hpn-float__btn:active { transform: scale(0.94); }

.hpn-float__panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: 280px;
    max-width: calc(100vw - 36px);
    background: var(--hpn-bg);
    border: 1px solid var(--hpn-border);
    border-radius: var(--hpn-radius-lg);
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hpn-float__panel .hpn-widget__status { width: auto; }
