/* ============================================================
   IVANN 58 — Notifications Hub
   Sentinel : NOTIF_V1
   ============================================================ */
/* NOTIF_V1 */

/* Badge fixed top-right, a cote du HUD currency */
.ivann-notif-badge {
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 99994;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    font: 800 13px/1 system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.4);
    transition: transform 150ms;
}
.ivann-notif-badge:hover { transform: scale(1.06); }
.ivann-notif-badge svg { width: 16px; height: 16px; }
.ivann-notif-badge--unread {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: #fff;
    animation: ivann-notif-pulse 1.6s ease-in-out infinite;
}
@keyframes ivann-notif-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.4), 0 0 0 0 rgba(244, 63, 94, 0.55); }
    50%      { box-shadow: 0 8px 22px rgba(0,0,0,0.4), 0 0 0 12px rgba(244, 63, 94, 0); }
}
.ivann-notif-badge__count {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Panel deroulant */
.ivann-notif-panel {
    position: fixed;
    top: 108px;
    right: 16px;
    z-index: 99993;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 480px;
    overflow-y: auto;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.55);
    color: #f8fafc;
    font: 13px/1.5 system-ui, sans-serif;
    display: none;
}
.ivann-notif-panel.is-open { display: block; }
.ivann-notif-panel__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}
.ivann-notif-panel__title {
    font-weight: 800;
    color: #c4b5fd;
    font-size: 12px;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.ivann-notif-panel__clear {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font: 700 10px/1 monospace;
    text-transform: uppercase; letter-spacing: 1px;
}
.ivann-notif-panel__clear:hover { color: #f8fafc; }
.ivann-notif-panel__empty {
    text-align: center;
    padding: 24px 12px;
    color: #64748b;
    font-size: 12px;
}
.ivann-notif-panel__list {
    display: flex; flex-direction: column;
    gap: 4px;
}
.ivann-notif-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--n-color, #6366f1);
    border-radius: 6px;
    cursor: pointer;
    transition: background 150ms;
    text-decoration: none;
    color: inherit;
}
.ivann-notif-item:hover { background: rgba(255,255,255,0.05); }
.ivann-notif-item--unread { background: rgba(99, 102, 241, 0.08); }
.ivann-notif-item--match  { --n-color: #f43f5e; }
.ivann-notif-item--turn   { --n-color: #fbbf24; }
.ivann-notif-item--ghost  { --n-color: #c084fc; }
.ivann-notif-item--daily  { --n-color: #67e8f9; }
.ivann-notif-item--streak { --n-color: #4ade80; }
.ivann-notif-item__icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--n-color);
}
.ivann-notif-item__icon svg { width: 14px; height: 14px; }
.ivann-notif-item__body { flex: 1; min-width: 0; }
.ivann-notif-item__title {
    font-weight: 700; font-size: 13px;
    color: #f8fafc;
    margin-bottom: 2px;
}
.ivann-notif-item__sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}
.ivann-notif-item__time {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.8px;
}

@media (max-width: 720px) {
    .ivann-notif-badge { top: 110px; right: 8px; }
    .ivann-notif-panel { top: 158px; right: 8px; width: calc(100vw - 16px); }
}
