/* ==========================================
   EVENTSIKA — NOTIFICATIONS
========================================== */

.notifications-page {
    --notif-bg: #080d20;
    --notif-card: #121a30;
    --notif-text: #f8fafc;
    --notif-muted: #94a3b8;
    --notif-border: rgba(255, 255, 255, 0.09);
    --notif-unread: #1d1b43;
    --notif-accent: #a78bfa;
    --notif-danger: #f87171;

    min-height: 100vh;
    padding: 110px 20px 80px;
    background: var(--notif-bg);
    color: var(--notif-text);
}

/* MODE CLAIR */

html[data-theme="light"] .notifications-page {
    --notif-bg: #f5f7ff;
    --notif-card: #fff;
    --notif-text: #172033;
    --notif-muted: #64748b;
    --notif-border: #e2e8f0;
    --notif-unread: #f0edff;
    --notif-accent: #6d28d9;
    --notif-danger: #b91c1c;
}

.notifications-page,
.notifications-page *,
.notifications-page *::before,
.notifications-page *::after {
    box-sizing: border-box;
}

.notifications-page .notifications-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* EN-TÊTE */

.notifications-page .notifications-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

.notifications-page .notifications-heading > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.notifications-page .notifications-eyebrow {
    color: var(--notif-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.notifications-page .notifications-heading h1 {
    margin: 12px 0;
    color: var(--notif-text);
    font-size: clamp(26px, 4vw, 38px);
}

.notifications-page .notifications-heading h1 i {
    margin-right: 10px;
    color: var(--notif-accent);
}

.notifications-page .notifications-heading p {
    color: var(--notif-muted);
    font-size: 14px;
}

.notifications-page .notifications-heading form {
    margin: 0;
}

.notifications-page .notifications-read-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.notifications-page .notifications-read-all:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* LISTE */

.notifications-page .notifications-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notifications-page .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--notif-border);
    border-radius: 17px;
    background: var(--notif-card);
    transition: transform 0.2s ease;
}

.notifications-page .notification-item:hover {
    transform: translateY(-2px);
}

.notifications-page .notification-item.notification-unread {
    border-left: 4px solid #8b5cf6;
    background: var(--notif-unread);
}

.notifications-page .notification-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--notif-accent);
    font-size: 18px;
}

.notifications-page .notification-body {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.notifications-page .notification-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.notifications-page .notification-body h3 {
    margin: 0;
    color: var(--notif-text);
    font-size: 16px;
}

.notifications-page .notification-body p {
    margin: 10px 0;
    color: var(--notif-muted);
    font-size: 13px;
    line-height: 1.7;
}

.notifications-page .notification-new {
    padding: 4px 9px;
    border-radius: 20px;
    background: #7c3aed;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.notifications-page .notification-date {
    color: var(--notif-muted);
    font-size: 11px;
}

/* ACTIONS */

.notifications-page .notification-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.notifications-page .notification-actions form {
    margin: 0;
}

.notifications-page .notification-actions button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--notif-border);
    border-radius: 9px;
    background: var(--notif-card);
    color: var(--notif-accent);
    font: inherit;
    cursor: pointer;
}

.notifications-page .notification-actions button:hover {
    background: var(--notif-unread);
}

.notifications-page .notification-actions .notification-delete {
    color: var(--notif-danger);
}

.notifications-page button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notifications-page :is(a, button):focus-visible {
    outline: 3px solid var(--notif-accent);
    outline-offset: 3px;
}

/* LISTE VIDE */

.notifications-page .notifications-empty {
    padding: 75px 20px;
    border: 1px solid var(--notif-border);
    border-radius: 20px;
    background: var(--notif-card);
    text-align: center;
    overflow-wrap: anywhere;
}

.notifications-page .notifications-empty > i {
    color: var(--notif-accent);
    font-size: 45px;
}

.notifications-page .notifications-empty h3 {
    color: var(--notif-text);
}

.notifications-page .notifications-empty p {
    color: var(--notif-muted);
}

/* CLOCHE DU HEADER */

.notification-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 19px;
    text-decoration: none;
}

.notification-badge[hidden] {
    display: none !important;
}

.notification-badge:not([hidden]) {
    position: absolute;
    top: -9px;
    right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* MOBILE */

@media (max-width: 700px) {
    .notifications-page .notifications-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .notifications-page .notification-item {
        gap: 10px;
        padding: 16px;
    }

    .notifications-page .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .notifications-page .notification-actions {
        flex-direction: column;
    }
}

/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {
    .notifications-page .notification-item {
        transition: none;
    }

    .notifications-page .notification-item:hover {
        transform: none;
    }
}