
/* =========================================================
   MYBLOG NOTIFICATIONS
   LIGHT + DARK MODE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f0f2f5;
    color: #050505;
    font-family: Arial, Helvetica, sans-serif;
    transition:
        background-color .2s ease,
        color .2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   PAGE
   ========================================================= */

.notifications-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 12px 100px;
}


/* =========================================================
   HEADER
   ========================================================= */

.notifications-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, .12);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.unread-count {
    min-width: 26px;
    height: 26px;
    padding: 0 7px;

    border-radius: 50px;

    background: #1877f2;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
}

.mark-all {
    border: 0;
    background: transparent;
    color: #1877f2;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    padding: 7px;
}

.mark-all:hover {
    text-decoration: underline;
}


/* =========================================================
   TABS
   ========================================================= */

.notification-tabs {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 17px;

    overflow-x: auto;
    scrollbar-width: none;
}

.notification-tabs::-webkit-scrollbar {
    display: none;
}

.notification-tab {
    flex: 0 0 auto;

    border: 0;

    background: #e4e6eb;
    color: #050505;

    padding: 9px 16px;

    border-radius: 22px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.notification-tab:hover {
    background: #d8dadf;
}

.notification-tab.active {
    background: #e7f3ff;
    color: #1877f2;
}


/* =========================================================
   NOTIFICATIONS CARD
   ========================================================= */

.notifications-card {
    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, .12);

    transition:
        background-color .2s ease,
        box-shadow .2s ease;
}


/* =========================================================
   NOTIFICATION ITEM
   ========================================================= */

.notification-item {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 14px 16px;

    border-bottom: 1px solid #eeeeee;

    position: relative;

    transition:
        background-color .15s ease,
        border-color .2s ease,
        opacity .15s ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #f7f8fa;
}

.notification-item.unread {
    background: #eaf3ff;
}

.notification-item.unread:hover {
    background: #e1efff;
}


/* =========================================================
   AVATAR
   ========================================================= */

.notification-avatar {
    width: 54px;
    min-width: 54px;
    height: 54px;

    position: relative;
}

.notification-avatar img {
    display: block;

    width: 54px;
    height: 54px;

    object-fit: cover;

    border-radius: 50%;

    background: #e4e6eb;
}


/* =========================================================
   NOTIFICATION ICON
   ========================================================= */

.notification-icon {
    position: absolute;

    right: -5px;
    bottom: -3px;

    width: 26px;
    height: 26px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    border: 3px solid #ffffff;

    font-size: 11px;
}

.icon-like {
    background: #1877f2;
}

.icon-comment {
    background: #45bd62;
}

.icon-share {
    background: #8b5cf6;
}

.icon-friend {
    background: #1877f2;
}

.icon-message {
    background: #0084ff;
}

.icon-follow {
    background: #1877f2;
}

.icon-mention {
    background: #f59e0b;
}

.icon-suggestion {
    background: #6366f1;
}

.icon-system {
    background: #65676b;
}


/* =========================================================
   CONTENT
   ========================================================= */

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-main-link {
    display: block;
}

.notification-title {
    color: #050505;

    font-size: 15px;
    line-height: 1.4;

    margin-bottom: 3px;

    word-wrap: break-word;
}

.notification-title strong {
    font-weight: 700;
}

.notification-description {
    color: #65676b;

    font-size: 14px;
    line-height: 1.4;

    margin-top: 3px;

    word-wrap: break-word;
}

.notification-time {
    color: #65676b;

    font-size: 12px;

    margin-top: 6px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.notification-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;
}

.notification-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 34px;

    padding: 7px 13px;

    border-radius: 7px;

    background: #1877f2;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.notification-action:hover {
    background: #166fe5;
}

.notification-action.secondary {
    background: #e4e6eb;
    color: #050505;
}

.notification-action.secondary:hover {
    background: #d8dadf;
}


/* =========================================================
   UNREAD DOT
   ========================================================= */

.notification-unread {
    width: 10px;
    min-width: 10px;
    height: 10px;

    margin-top: 22px;

    border-radius: 50%;

    background: #1877f2;

    display: block;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-notifications {
    padding: 75px 20px;
    text-align: center;
}

.empty-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 17px;

    border-radius: 50%;

    background: #e4e6eb;
    color: #65676b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}

.empty-notifications h3 {
    margin: 0 0 7px;

    font-size: 19px;
    font-weight: 700;
}

.empty-notifications p {
    margin: 0;

    color: #65676b;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FILTER EMPTY
   ========================================================= */

.filter-empty {
    display: none;

    padding: 50px 20px;

    text-align: center;

    color: #65676b;
}

.filter-empty i {
    display: block;

    font-size: 30px;

    margin-bottom: 10px;
}


/* =========================================================
   =========================================================
   DARK MODE
   =========================================================
   ========================================================= */

html.dark-mode,
html.dark-mode body {
    background: #18191a;
    color: #e4e6eb;
}


/* =========================================================
   DARK HEADER
   ========================================================= */

html.dark-mode .notifications-header {
    background: #242526;

    border-color: #3a3b3c;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, .35);
}

html.dark-mode .header-title h1 {
    color: #e4e6eb;
}

html.dark-mode .mark-all {
    color: #4595ff;
}

html.dark-mode .mark-all:hover {
    color: #6ba7ff;
}


/* =========================================================
   DARK TABS
   ========================================================= */

html.dark-mode .notification-tab {
    background: #3a3b3c;
    color: #e4e6eb;
}

html.dark-mode .notification-tab:hover {
    background: #4a4b4d;
}

html.dark-mode .notification-tab.active {
    background: #263a5b;
    color: #4595ff;
}


/* =========================================================
   DARK NOTIFICATION CARD
   ========================================================= */

html.dark-mode .notifications-card {
    background: #242526;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, .35);
}


/* =========================================================
   DARK NOTIFICATION ITEMS
   ========================================================= */

html.dark-mode .notification-item {
    background: #242526;
    border-bottom-color: #3a3b3c;
}

html.dark-mode .notification-item:hover {
    background: #303031;
}

html.dark-mode .notification-item.unread {
    background: #1d3557;
}

html.dark-mode .notification-item.unread:hover {
    background: #223e63;
}


/* =========================================================
   DARK AVATAR
   ========================================================= */

html.dark-mode .notification-avatar img {
    background: #3a3b3c;
}


/* =========================================================
   IMPORTANT:
   WHITE BORDER AROUND ICON MUST ALSO BE DARK
   ========================================================= */

html.dark-mode .notification-icon {
    border-color: #242526;
}


/* When the notification itself is unread */
html.dark-mode .notification-item.unread .notification-icon {
    border-color: #1d3557;
}


/* =========================================================
   DARK TEXT
   ========================================================= */

html.dark-mode .notification-title {
    color: #e4e6eb;
}

html.dark-mode .notification-description {
    color: #b0b3b8;
}

html.dark-mode .notification-time {
    color: #8a8d91;
}


/* =========================================================
   DARK ACTION BUTTONS
   ========================================================= */

html.dark-mode .notification-action {
    background: #1877f2;
    color: #ffffff;
}

html.dark-mode .notification-action:hover {
    background: #166fe5;
}

html.dark-mode .notification-action.secondary {
    background: #3a3b3c;
    color: #e4e6eb;
}

html.dark-mode .notification-action.secondary:hover {
    background: #4a4b4d;
}


/* =========================================================
   DARK EMPTY STATE
   ========================================================= */

html.dark-mode .empty-notifications {
    background: #242526;
}

html.dark-mode .empty-icon {
    background: #3a3b3c;
    color: #b0b3b8;
}

html.dark-mode .empty-notifications h3 {
    color: #e4e6eb;
}

html.dark-mode .empty-notifications p {
    color: #b0b3b8;
}


/* =========================================================
   DARK FILTER EMPTY
   ========================================================= */

html.dark-mode .filter-empty {
    background: #242526;
    color: #b0b3b8;
}


/* =========================================================
   DARK SCROLLBAR
   ========================================================= */

html.dark-mode::-webkit-scrollbar,
html.dark-mode body::-webkit-scrollbar {
    width: 8px;
}

html.dark-mode::-webkit-scrollbar-track,
html.dark-mode body::-webkit-scrollbar-track {
    background: #18191a;
}

html.dark-mode::-webkit-scrollbar-thumb,
html.dark-mode body::-webkit-scrollbar-thumb {
    background: #4a4b4d;
    border-radius: 10px;
}

html.dark-mode::-webkit-scrollbar-thumb:hover,
html.dark-mode body::-webkit-scrollbar-thumb:hover {
    background: #606164;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {
        background: #f0f2f5;
    }

    .notifications-page {
        padding:
            0
            0
            90px;
    }

    .notifications-header {
        border-radius: 0;
        margin-bottom: 8px;
        padding: 15px 13px;
    }

    .notifications-card {
        border-radius: 0;
    }

    .header-title h1 {
        font-size: 21px;
    }

    .notification-item {
        padding: 13px 12px;
    }

    .notification-avatar {
        width: 50px;
        min-width: 50px;
        height: 50px;
    }

    .notification-avatar img {
        width: 50px;
        height: 50px;
    }

    .notification-icon {
        width: 24px;
        height: 24px;
    }

    .notification-title {
        font-size: 14px;
    }

    .notification-description {
        font-size: 13px;
    }

    .notification-action {
        font-size: 12px;
        min-height: 32px;
        padding: 6px 10px;
    }
}


/* =========================================================
   MOBILE DARK MODE
   ========================================================= */

@media (max-width: 600px) {

    html.dark-mode,
    html.dark-mode body {
        background: #18191a;
    }

    html.dark-mode .notifications-header {
        background: #242526;
    }

    html.dark-mode .notifications-card {
        background: #242526;
    }

    html.dark-mode .notification-item {
        background: #242526;
    }

    html.dark-mode .notification-item:hover {
        background: #303031;
    }

    html.dark-mode .notification-item.unread {
        background: #1d3557;
    }

    html.dark-mode .notification-item.unread:hover {
        background: #223e63;
    }

    html.dark-mode .notification-icon {
        border-color: #242526;
    }

    html.dark-mode .notification-item.unread .notification-icon {
        border-color: #1d3557;
    }
}

/* end dark mode styles */
        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            background: #f0f2f5;
            color: #050505;
            font-family:
                Arial,
                Helvetica,
                sans-serif;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button {
            font-family: inherit;
        }

        /*
        |--------------------------------------------------------------------------
        | PAGE
        |--------------------------------------------------------------------------
        */

        .notifications-page {
            width: 100%;
            max-width: 760px;
            margin: 0 auto;
            padding: 20px 12px 100px;
        }

        /*
        |--------------------------------------------------------------------------
        | HEADER
        |--------------------------------------------------------------------------
        */

        .notifications-header {
            background: #ffffff;
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 12px;
            box-shadow:
                0 1px 3px rgba(0, 0, 0, .12);
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }

        .header-title {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-title h1 {
            margin: 0;
            font-size: 24px;
            line-height: 1.2;
            font-weight: 700;
        }

        .unread-count {
            min-width: 26px;
            height: 26px;
            padding: 0 7px;
            border-radius: 50px;
            background: #1877f2;
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
        }

        .mark-all {
            border: 0;
            background: transparent;
            color: #1877f2;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            padding: 7px;
        }

        .mark-all:hover {
            text-decoration: underline;
        }

        /*
        |--------------------------------------------------------------------------
        | TABS
        |--------------------------------------------------------------------------
        */

        .notification-tabs {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 17px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .notification-tabs::-webkit-scrollbar {
            display: none;
        }

        .notification-tab {
            flex: 0 0 auto;
            border: 0;
            background: #e4e6eb;
            color: #050505;
            padding: 9px 16px;
            border-radius: 22px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: .15s ease;
        }

        .notification-tab:hover {
            background: #d8dadf;
        }

        .notification-tab.active {
            background: #e7f3ff;
            color: #1877f2;
        }

        /*
        |--------------------------------------------------------------------------
        | CARD
        |--------------------------------------------------------------------------
        */

        .notifications-card {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow:
                0 1px 3px rgba(0, 0, 0, .12);
        }

        /*
        |--------------------------------------------------------------------------
        | ITEM
        |--------------------------------------------------------------------------
        */

        .notification-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid #eeeeee;
            position: relative;
            transition:
                background .15s ease,
                opacity .15s ease;
        }

        .notification-item:last-child {
            border-bottom: 0;
        }

        .notification-item:hover {
            background: #f7f8fa;
        }

        .notification-item.unread {
            background: #eaf3ff;
        }

        .notification-item.unread:hover {
            background: #e1efff;
        }

        /*
        |--------------------------------------------------------------------------
        | AVATAR
        |--------------------------------------------------------------------------
        */

        .notification-avatar {
            width: 54px;
            min-width: 54px;
            height: 54px;
            position: relative;
        }

        .notification-avatar img {
            display: block;
            width: 54px;
            height: 54px;
            object-fit: cover;
            border-radius: 50%;
            background: #e4e6eb;
        }

        /*
        |--------------------------------------------------------------------------
        | ICON
        |--------------------------------------------------------------------------
        */

        .notification-icon {
            position: absolute;
            right: -5px;
            bottom: -3px;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            border: 3px solid #ffffff;
            font-size: 11px;
        }

        .icon-like {
            background: #1877f2;
        }

        .icon-comment {
            background: #45bd62;
        }

        .icon-share {
            background: #8b5cf6;
        }

        .icon-friend {
            background: #1877f2;
        }

        .icon-message {
            background: #0084ff;
        }

        .icon-follow {
            background: #1877f2;
        }

        .icon-mention {
            background: #f59e0b;
        }

        .icon-suggestion {
            background: #6366f1;
        }

        .icon-system {
            background: #65676b;
        }

        /*
        |--------------------------------------------------------------------------
        | CONTENT
        |--------------------------------------------------------------------------
        */

        .notification-content {
            flex: 1;
            min-width: 0;
        }

        .notification-main-link {
            display: block;
        }

        .notification-title {
            color: #050505;
            font-size: 15px;
            line-height: 1.4;
            margin-bottom: 3px;
            word-wrap: break-word;
        }

        .notification-title strong {
            font-weight: 700;
        }

        .notification-description {
            color: #65676b;
            font-size: 14px;
            line-height: 1.4;
            margin-top: 3px;
            word-wrap: break-word;
        }

        .notification-time {
            color: #65676b;
            font-size: 12px;
            margin-top: 6px;
        }

        /*
        |--------------------------------------------------------------------------
        | ACTIONS
        |--------------------------------------------------------------------------
        */

        .notification-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 10px;
        }

        .notification-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 34px;
            padding: 7px 13px;
            border-radius: 7px;
            background: #1877f2;
            color: #ffffff;
            font-size: 13px;
            font-weight: 700;
            transition: .15s ease;
        }

        .notification-action:hover {
            background: #166fe5;
        }

        .notification-action.secondary {
            background: #e4e6eb;
            color: #050505;
        }

        .notification-action.secondary:hover {
            background: #d8dadf;
        }

        /*
        |--------------------------------------------------------------------------
        | UNREAD DOT
        |--------------------------------------------------------------------------
        */

        .notification-unread {
            width: 10px;
            min-width: 10px;
            height: 10px;
            margin-top: 22px;
            border-radius: 50%;
            background: #1877f2;
            display: block;
        }

        /*
        |--------------------------------------------------------------------------
        | EMPTY
        |--------------------------------------------------------------------------
        */

        .empty-notifications {
            padding: 75px 20px;
            text-align: center;
        }

        .empty-icon {
            width: 76px;
            height: 76px;
            margin: 0 auto 17px;
            border-radius: 50%;
            background: #e4e6eb;
            color: #65676b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .empty-notifications h3 {
            margin: 0 0 7px;
            font-size: 19px;
            font-weight: 700;
        }

        .empty-notifications p {
            margin: 0;
            color: #65676b;
            font-size: 14px;
            line-height: 1.5;
        }

        /*
        |--------------------------------------------------------------------------
        | FILTER EMPTY
        |--------------------------------------------------------------------------
        */

        .filter-empty {
            display: none;
            padding: 50px 20px;
            text-align: center;
            color: #65676b;
        }

        .filter-empty i {
            display: block;
            font-size: 30px;
            margin-bottom: 10px;
        }

        /*
        |--------------------------------------------------------------------------
        | MOBILE
        |--------------------------------------------------------------------------
        */

        @media (max-width: 600px) {

            body {
                background: #f0f2f5;
            }

            .notifications-page {
                padding:
                    0
                    0
                    90px;
            }

            .notifications-header {
                border-radius: 0;
                margin-bottom: 8px;
                padding: 15px 13px;
            }

            .notifications-card {
                border-radius: 0;
            }

            .header-title h1 {
                font-size: 21px;
            }

            .notification-item {
                padding: 13px 12px;
            }

            .notification-avatar {
                width: 50px;
                min-width: 50px;
                height: 50px;
            }

            .notification-avatar img {
                width: 50px;
                height: 50px;
            }

            .notification-icon {
                width: 24px;
                height: 24px;
            }

            .notification-title {
                font-size: 14px;
            }

            .notification-description {
                font-size: 13px;
            }

            .notification-action {
                font-size: 12px;
                min-height: 32px;
                padding: 6px 10px;
            }
        }
