/* ============================================================
   🔔 NOTIFICATION CENTER
============================================================ */

#notification-center-container {

    position: fixed;

    top: 78px;
    right: 24px;

    width: min(420px, calc(100vw - 32px));

    z-index: 9999;

    pointer-events: none;

}


#notification-center-container.is-open {

    pointer-events: auto;

}


/* ============================================================
   📦 CENTER
============================================================ */

.notification-center {

    width: 100%;

    max-height: min(650px, calc(100vh - 110px));

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #171717,
            #101010
        );

    border:
        1px solid
        rgba(255, 255, 255, .09);

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .55),
        0 0 35px rgba(255, 0, 170, .08);

    animation:
        notification-center-in .18s ease-out;

}


/* ============================================================
   HEADER
============================================================ */

.notification-header {

    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 14px 18px;

    box-sizing: border-box;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .07);

}


.notification-header > div {

    display: flex;

    align-items: center;

    gap: 9px;

}


.notification-header strong {

    color: #fff;

    font-size: 17px;

    font-weight: 800;

}


.notification-header span {

    min-width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 6px;

    box-sizing: border-box;

    border-radius: 999px;

    background:
        rgba(255, 0, 170, .12);

    color: #ff00aa;

    font-size: 11px;

    font-weight: 800;

}


.notification-header button {

    border: 0;

    background: transparent;

    color: #00ff88;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        color .18s ease,
        transform .18s ease;

}


.notification-header button:hover {

    color: #fff;

    transform: translateY(-1px);

}


/* ============================================================
   📜 LIST
============================================================ */

.notification-list {

    flex: 1;

    overflow-y: auto;

    overscroll-behavior: contain;

}


.notification-list::-webkit-scrollbar {

    width: 6px;

}


.notification-list::-webkit-scrollbar-track {

    background: transparent;

}


.notification-list::-webkit-scrollbar-thumb {

    background:
        rgba(255, 255, 255, .12);

    border-radius: 10px;

}


/* ============================================================
   🔔 ITEM
============================================================ */

.notification-item {

    position: relative;

    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 13px 42px 13px 16px;

    box-sizing: border-box;

    cursor: pointer;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .045);

    transition:
        background .18s ease;

}


.notification-item:hover {

    background:
        rgba(255, 0, 170, .06);

}


.notification-item.is-unread {

    background:
        rgba(255, 0, 170, .035);

}


.notification-item.is-unread:hover {

    background:
        rgba(255, 0, 170, .08);

}


/* ============================================================
   ICON
============================================================ */

.notification-item-icon {

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255, 0, 170, .10);

    font-size: 18px;

}


/* ============================================================
   AVATAR
============================================================ */

.notification-item-avatar {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    object-fit: cover;

    border-radius: 50%;

    background: #222;

    border:
        1px solid
        rgba(255, 255, 255, .08);

}


/* ============================================================
   CONTENT
============================================================ */

.notification-item-content {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.notification-item-content strong {

    color: #fff;

    font-size: 13px;

    line-height: 1.35;

    font-weight: 700;

}


.notification-item-text {

    color:
        rgba(255, 255, 255, .55);

    font-size: 12px;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.notification-item-content time {

    color:
        rgba(255, 255, 255, .30);

    font-size: 10px;

}


/* ============================================================
   🔴 UNREAD
============================================================ */

.notification-unread-dot {

    position: absolute;

    top: 18px;
    right: 15px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ff00aa;

    box-shadow:
        0 0 10px
        rgba(255, 0, 170, .7);

}


/* ============================================================
   🗑️ DELETE
============================================================ */

.notification-delete {

    position: absolute;

    top: 50%;

    right: 8px;

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translateY(-50%);

    border: 0;

    border-radius: 50%;

    background: transparent;

    color:
        rgba(255, 255, 255, .25);

    font-size: 18px;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity .18s ease,
        background .18s ease,
        color .18s ease;

}


.notification-item:hover
.notification-delete {

    opacity: 1;

}


.notification-delete:hover {

    background:
        rgba(255, 60, 60, .12);

    color: #ff5555;

}


/* ============================================================
   📭 EMPTY
============================================================ */

.notification-empty {

    min-height: 280px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 30px;

    text-align: center;

}


.notification-empty-icon {

    margin-bottom: 8px;

    font-size: 42px;

    opacity: .8;

}


.notification-empty strong {

    color: #fff;

    font-size: 15px;

}


.notification-empty span {

    color:
        rgba(255, 255, 255, .4);

    font-size: 12px;

}


/* ============================================================
   ⏳ LOADING
============================================================ */

.notification-loading {

    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color:
        rgba(255, 255, 255, .5);

    font-size: 13px;

}


.notification-spinner {

    width: 20px;
    height: 20px;

    border:
        3px solid
        rgba(255, 255, 255, .10);

    border-top-color: #ff00aa;

    border-radius: 50%;

    animation:
        notification-spin .7s linear infinite;

}


/* ============================================================
   ❌ ERROR
============================================================ */

.notification-error {

    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 30px;

    text-align: center;

}


.notification-error > div {

    font-size: 35px;

}


.notification-error strong {

    max-width: 250px;

    color: #fff;

    font-size: 13px;

}


.notification-error button {

    padding: 9px 15px;

    border: 0;

    border-radius: 10px;

    background: #ff00aa;

    color: #fff;

    font-weight: 700;

    cursor: pointer;

}


/* ============================================================
   ✨ ANIMATIONS
============================================================ */

@keyframes notification-center-in {

    from {

        opacity: 0;

        transform:
            translateY(-8px)
            scale(.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


@keyframes notification-spin {

    to {

        transform:
            rotate(360deg);

    }

}


/* ============================================================
   📱 MOBILE
============================================================ */

@media (max-width: 700px) {

    #notification-center-container {

        top: 68px;

        right: 10px;
        left: 10px;

        width: auto;

    }


    .notification-center {

        max-height:
            calc(100vh - 85px);

        border-radius: 18px;

    }


    .notification-item {

        padding-left: 13px;

    }


    .notification-delete {

        opacity: 1;

    }

}