/* Notification bell (portal header) + the full inbox page. Colours reference tokens only. */

/* --- Bell in the top bar (a JS-free <details> dropdown, like the hat switcher) --- */
.notif-bell { position: relative; }

.notif-bell__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--outline-variant);
    background: var(--surface-container-lowest, var(--surface));
    color: var(--brand-primary);
    cursor: pointer;
    list-style: none;
}

.notif-bell__trigger::-webkit-details-marker { display: none; }
.notif-bell__trigger:hover { background: var(--surface-container); }

.notif-bell__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--brand-secondary);
    color: var(--brand-primary);
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-bell__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--surface-container-lowest, var(--surface));
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 40;
}

.notif-bell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--outline-variant);
}

.notif-bell__title { font-weight: 700; color: var(--brand-primary); }

.notif-bell__readall {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.notif-bell__empty { padding: var(--space-lg); color: var(--on-surface-variant); text-align: center; }

.notif-bell__list { list-style: none; margin: 0; padding: 0; }

.notif-bell__item { border-bottom: 1px solid var(--outline-variant); }
.notif-bell__item:last-child { border-bottom: none; }
.notif-bell__item--unread { background: var(--surface-container-low); }

.notif-bell__link {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-md);
}
.notif-bell__link:hover { background: var(--surface-container); }

.notif-bell__item-title { display: block; font-weight: 700; color: var(--on-surface); }
.notif-bell__item-body { display: block; font-size: 0.85rem; color: var(--on-surface-variant); margin-top: 2px; }
.notif-bell__item-time { display: block; font-size: 0.72rem; color: var(--outline); margin-top: 4px; }

.notif-bell__all {
    display: block;
    text-align: center;
    padding: var(--space-md);
    font-weight: 600;
    color: var(--brand-primary);
    border-top: 1px solid var(--outline-variant);
    text-decoration: none;
}
.notif-bell__all:hover { background: var(--surface-container); }

/* --- Full inbox page --- */
.notif-list { list-style: none; margin: 0; padding: 0; }

.notif-item { border-bottom: 1px solid var(--outline-variant); }
.notif-item:last-child { border-bottom: none; }

.notif-item__btn {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-md);
}
.notif-item__btn:hover { background: var(--surface-container-low); }

.notif-item__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: var(--radius-full);
    background: transparent;
}
.notif-item--unread .notif-item__dot { background: var(--brand-secondary); }

.notif-item__text { display: flex; flex-direction: column; }
.notif-item__title { font-weight: 700; color: var(--on-surface); }
.notif-item--unread .notif-item__title { color: var(--brand-primary); }
.notif-item__body { font-size: 0.9rem; color: var(--on-surface-variant); margin-top: 2px; }
.notif-item__time { font-size: 0.72rem; color: var(--outline); margin-top: 4px; }
