/* =========================================================
   VIBECHECK NOTIFICATIONS
========================================================= */

.notifications-page {
    min-height: 100vh;
    padding: 50px 20px 80px;
}


.notifications-page .container {
    max-width: 850px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}


.notifications-header h1 {
    margin: 0 0 6px;
}


.notifications-header p {
    margin: 0;

    opacity: 0.6;
}


#markAllRead {
    padding: 10px 15px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 10px;

    background: rgba(255,255,255,0.06);

    color: inherit;

    cursor: pointer;
}


#markAllRead:hover {
    background: rgba(255,255,255,0.1);
}


/* =========================================================
   LIST
========================================================= */

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.notification-item {
    display: flex;

    gap: 15px;

    padding: 18px;

    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.035);
}


.notification-icon {
    width: 44px;
    height: 44px;

    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255,255,255,0.08);

    font-size: 21px;
}


.notification-content {
    flex: 1;
    min-width: 0;
    overflow-wrap:anywhere;
    word-break:break-word;
}


.notification-content h3 {
    margin: 0 0 5px;

    font-size: 16px;
}


.notification-content p {
    margin: 0;

    line-height: 1.5;

    opacity: 0.7;
}


.notification-time {
    display: block;

    margin-top: 8px;

    font-size: 12px;

    opacity: 0.45;
}


.notification-unread {
    border-color: rgba(124,58,237,0.35);

    background: rgba(124,58,237,0.08);
}


/* =========================================================
   EMPTY / LOADING
========================================================= */

.notifications-loading,
.notifications-empty {
    padding: 50px 20px;

    text-align: center;

    opacity: 0.55;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .notifications-page {
        padding: 30px 14px 60px;
    }


    .notifications-header {
        align-items: flex-start;

        flex-direction: column;
    }


    #markAllRead {
        width: 100%;
    }

}

.notification-item {
    position: relative;
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
}

.notification-item * {
    pointer-events: none;
}

#markAllRead {
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
}

#markAllRead {
    transition:
        transform 0.15s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

#markAllRead:active {
    transform: scale(0.96);
}

#markAllRead:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.notification-message {
    white-space: normal;
    line-height: 1.6;
    overflow-wrap:anywhere;
    word-break:break-word;
    max-width:100%;
}