/*
|--------------------------------------------------------------------------
| NYOSA V2 — NOTIFICATIONS CSS
|--------------------------------------------------------------------------
| File:
| /public_html/v2/css/notifications.css
|--------------------------------------------------------------------------
*/

:root {
    --notifications-blue: #1a5fb4;
    --notifications-blue-dark: #12498d;
    --notifications-blue-light: #eef5ff;

    --notifications-text: #172033;
    --notifications-muted: #6b7280;

    --notifications-border: #e6eaf0;

    --notifications-bg: #f6f8fb;
    --notifications-white: #ffffff;

    --notifications-shadow:
        0 10px 30px rgba(15, 23, 42, 0.07);
}


/*
|--------------------------------------------------------------------------
| PAGE
|--------------------------------------------------------------------------
*/

.notifications-page {
    min-height: calc(100vh - 72px);

    background: var(--notifications-bg);

    color: var(--notifications-text);
}


/*
|--------------------------------------------------------------------------
| CONTAINER
|--------------------------------------------------------------------------
*/

.notifications-container {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    padding-left: 24px;
    padding-right: 24px;
}


/*
|--------------------------------------------------------------------------
| HERO
|--------------------------------------------------------------------------
*/

.notifications-hero {
    background: #ffffff;

    border-bottom: 1px solid var(--notifications-border);
}


.notifications-heading {
    min-height: 180px;

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

    gap: 30px;
}


.notifications-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--notifications-blue);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.notifications-heading h1 {
    margin: 0;

    color: var(--notifications-text);

    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -1px;
}


.notifications-heading p {
    max-width: 650px;

    margin: 12px 0 0;

    color: var(--notifications-muted);

    font-size: 15px;

    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| UNREAD COUNT
|--------------------------------------------------------------------------
*/

.notifications-count {
    min-width: 100px;

    padding: 16px 20px;

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

    border: 1px solid #dce8f8;

    border-radius: 14px;

    background: var(--notifications-blue-light);
}


.notifications-count strong {
    color: var(--notifications-blue);

    font-size: 25px;
    font-weight: 800;

    line-height: 1;
}


.notifications-count span {
    margin-top: 5px;

    color: var(--notifications-muted);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}


/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.notifications-content {
    padding: 35px 0 60px;
}


/*
|--------------------------------------------------------------------------
| NOTIFICATIONS LIST
|--------------------------------------------------------------------------
*/

.notifications-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/*
|--------------------------------------------------------------------------
| NOTIFICATION ITEM
|--------------------------------------------------------------------------
*/

.notification-item {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding: 18px;

    border: 1px solid var(--notifications-border);

    border-radius: 15px;

    background: var(--notifications-white);

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.notification-item:hover {
    border-color:
        rgba(26, 95, 180, 0.22);

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.07);

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| UNREAD
|--------------------------------------------------------------------------
*/

.notification-item.is-unread {
    border-color: #d9e7f9;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fafdff
        );
}


.notification-item.is-unread::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 3px;

    border-radius:
        15px 0 0 15px;

    background: var(--notifications-blue);
}


/*
|--------------------------------------------------------------------------
| READ
|--------------------------------------------------------------------------
*/

.notification-item.is-read {
    opacity: 0.86;
}


/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

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

    flex-shrink: 0;

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

    border-radius: 12px;

    background: var(--notifications-blue-light);

    font-size: 19px;
}


/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

.notification-body {
    min-width: 0;

    flex: 1;
}


/*
|--------------------------------------------------------------------------
| TOP
|--------------------------------------------------------------------------
*/

.notification-top {
    display: flex;
    align-items: center;

    gap: 8px;
}


.notification-top h2 {
    margin: 0;

    color: var(--notifications-text);

    font-size: 15px;
    font-weight: 750;

    line-height: 1.35;
}


/*
|--------------------------------------------------------------------------
| UNREAD DOT
|--------------------------------------------------------------------------
*/

.notification-unread-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--notifications-blue);
}


/*
|--------------------------------------------------------------------------
| MESSAGE
|--------------------------------------------------------------------------
*/

.notification-body p {
    margin: 7px 0 10px;

    color: var(--notifications-muted);

    font-size: 13px;

    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| BOTTOM
|--------------------------------------------------------------------------
*/

.notification-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.notification-bottom time {
    color: #929aaa;

    font-size: 11px;
    font-weight: 500;
}


/*
|--------------------------------------------------------------------------
| VIEW LINK
|--------------------------------------------------------------------------
*/

.notification-link {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--notifications-blue);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}


.notification-link span {
    font-size: 15px;

    transition:
        transform 0.2s ease;
}


.notification-link:hover span {
    transform: translateX(3px);
}


/*
|--------------------------------------------------------------------------
| LOGIN / EMPTY CARD
|--------------------------------------------------------------------------
*/

.notifications-login-card,
.notifications-empty-card {
    max-width: 650px;

    margin: 25px auto 0;

    padding: 50px 30px;

    text-align: center;

    border: 1px solid var(--notifications-border);

    border-radius: 18px;

    background: #ffffff;

    box-shadow: var(--notifications-shadow);
}


/*
|--------------------------------------------------------------------------
| LARGE ICON
|--------------------------------------------------------------------------
*/

.notifications-login-icon,
.notifications-empty-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

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

    border-radius: 20px;

    background: var(--notifications-blue-light);

    font-size: 29px;
}


/*
|--------------------------------------------------------------------------
| EMPTY TITLE
|--------------------------------------------------------------------------
*/

.notifications-login-card h2,
.notifications-empty-card h2 {
    margin: 0;

    color: var(--notifications-text);

    font-size: 22px;
    font-weight: 800;

    line-height: 1.3;
}


.notifications-login-card p,
.notifications-empty-card p {
    max-width: 500px;

    margin: 10px auto 0;

    color: var(--notifications-muted);

    font-size: 14px;

    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.notifications-login-actions {
    margin-top: 25px;

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

    gap: 10px;
}


.notifications-primary-button,
.notifications-secondary-button {
    min-height: 44px;

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

    padding: 0 20px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.notifications-primary-button {
    background: var(--notifications-blue);

    color: #ffffff;
}


.notifications-primary-button:hover {
    background: var(--notifications-blue-dark);

    transform: translateY(-1px);
}


.notifications-secondary-button {
    border: 1px solid var(--notifications-border);

    background: #ffffff;

    color: var(--notifications-text);
}


.notifications-secondary-button:hover {
    border-color:
        rgba(26, 95, 180, 0.3);

    color: var(--notifications-blue);

    background: var(--notifications-blue-light);
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .notifications-page {
        min-height: calc(100vh - 64px);
    }


    .notifications-container {
        padding-left: 15px;
        padding-right: 15px;
    }


    .notifications-heading {
        min-height: auto;

        padding: 30px 0;

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .notifications-heading h1 {
        font-size: 31px;
    }


    .notifications-heading p {
        margin-top: 9px;

        font-size: 13px;
    }


    .notifications-count {
        min-width: 90px;

        padding: 11px 15px;

        flex-direction: row;

        gap: 7px;
    }


    .notifications-count span {
        margin-top: 0;
    }


    .notifications-content {
        padding-top: 22px;
        padding-bottom: 40px;
    }


    .notification-item {
        gap: 11px;

        padding: 14px;

        border-radius: 13px;
    }


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

        border-radius: 10px;

        font-size: 17px;
    }


    .notification-top h2 {
        font-size: 14px;
    }


    .notification-body p {
        font-size: 12px;

        line-height: 1.55;
    }


    .notification-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .notification-link {
        font-size: 12px;
    }


    .notifications-login-card,
    .notifications-empty-card {
        margin-top: 10px;

        padding: 38px 20px;

        border-radius: 15px;
    }


    .notifications-login-card h2,
    .notifications-empty-card h2 {
        font-size: 19px;
    }


    .notifications-login-actions {
        flex-direction: column;

        width: 100%;
    }


    .notifications-primary-button,
    .notifications-secondary-button {
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL PHONES
|--------------------------------------------------------------------------
*/

@media (max-width: 400px) {

    .notifications-heading h1 {
        font-size: 28px;
    }


    .notification-item {
        padding: 12px;
    }


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

        font-size: 15px;
    }

}