/* ============================================================================
   Page /notifications + badge dans la nav.
   ========================================================================= */

.notifs-header {
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
}
.notifs-header h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.notifs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.notifs-empty {
    margin-top: var(--space-5);
    color: var(--muted);
    font-size: 0.95rem;
}

/* Item notif : pattern conversationnel (Twitter / Letterboxd).
   Pas de carte, juste un row avec border-bottom. État "unread" :
   un point violet en marge gauche + texte en --ink. État "lu" :
   texte en --muted. Sobre, lisible, sans gros bloc visuel. */
.notif {
    position: relative;
    border-bottom: 1px solid var(--border);
    transition: background 120ms;
}
.notif:hover { background: var(--bg-paper); }

/* Point violet en marge gauche pour les unread. Discret mais
   immédiatement lisible. Remplace le fond violet-soft qui faisait
   "carte mise en avant". */
.notif--unread::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
}

.notif__link {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4);
    text-decoration: none;
    color: inherit;
}
.notif__link:hover { text-decoration: none; }

.notif__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--violet-soft);
    flex-shrink: 0;
}
.notif__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    font-weight: 600;
}

.notif__body { min-width: 0; }
.notif__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
}
.notif--unread .notif__text { color: var(--ink); }
.notif__text strong { color: var(--ink); font-weight: 600; }
.notif__text em {
    font-style: normal;
    color: var(--ink);
    font-weight: 500;
}
.notif__date {
    margin: 2px 0 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--subtle);
}

/* ============================================================================
   Badge dans la nav (cercle violet en haut à droite de l'icône cloche)
   ========================================================================= */

.bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius);
    background: var(--violet);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg);
}
