/* ATR PWA — bell notification button */

.btn-notify {
    /* Inherits .btn-icon sizing from theme */
    position: relative;
    color: inherit;
    transition: color 0.2s;
}

/* Default state: show outline (bell-off), hide filled (bell-on) */
.btn-notify .icon-bell-on {
    display: none;
}

.btn-notify .icon-bell-off {
    display: block;
}

/* Subscribed state: hide outline, show filled */
.btn-notify[data-state="subscribed"] .icon-bell-off {
    display: none;
}

.btn-notify[data-state="subscribed"] .icon-bell-on {
    display: block;
    color: var(--clr-teal);
}

/* Loading state */
.btn-notify[data-state="loading"] {
    opacity: 0.5;
    pointer-events: none;
}

/* Unsubscribe modal */
.atr-pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.atr-pwa-modal[hidden] { display: none; }

.atr-pwa-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 0;
}
.atr-pwa-modal__box {
    position: relative;
    z-index: 1;
    background: var(--clr-surface, #fff);
    border-radius: 10px;
    padding: 28px 24px 20px;
    max-width: 320px;
    width: calc(100% - 40px);
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    text-align: center;
}
.atr-pwa-modal__msg {
    font-family: var(--ff-heading);
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 20px;
    color: var(--clr-text, #1d2327);
}
.atr-pwa-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.atr-pwa-modal__actions .btn {
    flex: 1;
    font-size: .85rem;
}
#atr-unsub-cancel {
    color: #fff;
    background: var(--clr-teal);
    border-color: var(--clr-teal);
}
#atr-unsub-confirm {
    color: #fff;
    background: #c0392b;
    border-color: #c0392b;
}
#atr-unsub-confirm:hover {
    background: #a93226;
    border-color: #a93226;
}

/* Tooltip */
.btn-notify[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .7rem;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
.btn-notify[data-tooltip]:hover::after {
    opacity: 1;
}
