﻿/* =========================================================
   Notifications
   ========================================================= */

.notifications-page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}


/* Hero
--------------------------------------------------------- */

.notifications-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: linear-gradient( 135deg, rgba(124, 58, 237, 0.95), rgba(99, 102, 241, 0.88) );
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(99, 102, 241, 0.22);
}

    .notifications-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        left: -70px;
        bottom: -110px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

.notifications-hero__icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 25px;
    backdrop-filter: blur(8px);
}

.notifications-hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
}

    .notifications-hero__content h1 {
        margin: 0 0 5px;
        font-size: 25px;
        font-weight: 700;
    }

    .notifications-hero__content p {
        margin: 0;
        font-size: 13px;
        opacity: 0.86;
    }

.notifications-hero__count {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 82px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

    .notifications-hero__count strong {
        font-size: 22px;
        line-height: 1;
    }

    .notifications-hero__count span {
        margin-top: 5px;
        font-size: 10px;
        opacity: 0.85;
    }


/* Toolbar
--------------------------------------------------------- */

.notifications-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.notifications-toolbar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

    .notifications-toolbar__info i {
        color: #6366f1;
    }

.notifications-mark-all {
    border: 0;
    background: transparent;
    color: #6366f1;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .notifications-mark-all:hover {
        background: rgba(99, 102, 241, 0.08);
        transform: translateY(-1px);
    }


/* List
--------------------------------------------------------- */

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Notification Card
--------------------------------------------------------- */

.notification-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .notification-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09);
    }

    .notification-card.is-unread {
        border-right: 4px solid currentColor;
    }

    .notification-card.is-read {
        opacity: 0.78;
    }


/* Icons
--------------------------------------------------------- */

.notification-card__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 18px;
}


/* Colors
--------------------------------------------------------- */

.notification-card--blue {
    color: #2563eb;
}

    .notification-card--blue .notification-card__icon {
        background: rgba(37, 99, 235, 0.11);
    }

.notification-card--green {
    color: #16a34a;
}

    .notification-card--green .notification-card__icon {
        background: rgba(22, 163, 74, 0.11);
    }

.notification-card--cyan {
    color: #0891b2;
}

    .notification-card--cyan .notification-card__icon {
        background: rgba(8, 145, 178, 0.11);
    }

.notification-card--red {
    color: #dc2626;
}

    .notification-card--red .notification-card__icon {
        background: rgba(220, 38, 38, 0.11);
    }

.notification-card--purple {
    color: #7c3aed;
}

    .notification-card--purple .notification-card__icon {
        background: rgba(124, 58, 237, 0.11);
    }


/* Body
--------------------------------------------------------- */

.notification-card__body {
    min-width: 0;
    flex: 1;
}

.notification-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

    .notification-card__header h2 {
        margin: 0;
        color: #1e293b;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.6;
    }

.notification-new {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.notification-card__message {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
}

.notification-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.notification-date {
    color: #94a3b8;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .notification-card__actions form {
        margin: 0;
    }

.notification-action {
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .notification-action:hover {
        transform: translateY(-1px);
    }

.notification-action--read {
    background: rgba(16, 185, 129, 0.09);
    color: #059669;
}

.notification-action--link {
    background: rgba(99, 102, 241, 0.09);
    color: #6366f1;
}


/* Empty
--------------------------------------------------------- */

.notifications-empty {
    padding: 70px 20px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(12px);
}

.notifications-empty__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(100, 116, 139, 0.08);
    color: #94a3b8;
    font-size: 27px;
}

.notifications-empty h2 {
    margin: 0 0 7px;
    color: #334155;
    font-size: 18px;
}

.notifications-empty p {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 12px;
}

.notifications-empty__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 12px;
    background: #6366f1;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 7px 18px rgba(99, 102, 241, 0.2);
}


/* Mobile
--------------------------------------------------------- */

@media (max-width: 600px) {

    .notifications-page {
        width: calc(100% - 16px);
        margin: 0 auto;
        padding: 10px 0 18px;
    }

    /* Hero */

    .notifications-hero {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px;
        margin-bottom: 12px;
        border-radius: 17px;
    }

    .notifications-hero__icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 12px;
        font-size: 16px;
    }

    .notifications-hero__content {
        min-width: 0;
    }

        .notifications-hero__content h1 {
            margin-bottom: 2px;
            font-size: 16px;
        }

        .notifications-hero__content p {
            font-size: 8px;
            line-height: 1.6;
            white-space: nowrap;
        }

    .notifications-hero__count {
        min-width: 42px;
        padding: 6px 7px;
        border-radius: 10px;
    }

        .notifications-hero__count strong {
            font-size: 15px;
        }

        .notifications-hero__count span {
            margin-top: 3px;
            font-size: 6px;
            white-space: nowrap;
        }


    /* Toolbar */

    .notifications-toolbar {
        margin-bottom: 8px;
        padding: 0 2px;
    }

    .notifications-toolbar__info {
        font-size: 9px;
    }

    .notifications-mark-all {
        padding: 6px 7px;
        font-size: 8px;
    }


    /* Cards */

    .notifications-list {
        gap: 8px;
    }

    .notification-card {
        display: flex;
        gap: 9px;
        padding: 11px;
        border-radius: 14px;
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
    }

    .notification-card__icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 10px;
        font-size: 12px;
    }

    .notification-card__body {
        min-width: 0;
    }

    .notification-card__header {
        gap: 6px;
        margin-bottom: 4px;
    }

        .notification-card__header h2 {
            min-width: 0;
            font-size: 11px;
            line-height: 1.5;
        }

    .notification-new {
        padding: 2px 5px;
        font-size: 7px;
    }

    .notification-card__message {
        font-size: 9px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .notification-card__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 6px;
        margin-top: 8px;
        padding-top: 7px;
    }

    .notification-date {
        min-width: 0;
        font-size: 7px;
        white-space: nowrap;
    }

    .notification-card__actions {
        width: auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .notification-action {
        padding: 5px 6px;
        border-radius: 7px;
        font-size: 7px;
        white-space: nowrap;
    }

        .notification-action i {
            font-size: 7px;
        }


    /* Empty */

    .notifications-empty {
        padding: 45px 15px;
        border-radius: 17px;
    }

    .notifications-empty__icon {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
        border-radius: 17px;
        font-size: 20px;
    }

    .notifications-empty h2 {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .notifications-empty p {
        margin-bottom: 16px;
        font-size: 9px;
    }

    .notifications-empty__button {
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 9px;
    }
}

@media (max-width: 380px) {

    .notifications-page {
        width: calc(100% - 12px);
    }

    .notifications-hero {
        padding: 11px;
    }

    .notifications-hero__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 14px;
    }

    .notifications-hero__content h1 {
        font-size: 14px;
    }

    .notifications-hero__content p {
        font-size: 7px;
    }

    .notification-card {
        padding: 9px;
    }

    .notification-card__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .notification-card__header h2 {
        font-size: 10px;
    }

    .notification-card__message {
        font-size: 8px;
    }

    .notification-date {
        font-size: 6px;
    }

    .notification-action {
        padding: 4px 5px;
        font-size: 6px;
    }
}


/* Reduced motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .notification-card,
    .notification-action,
    .notifications-mark-all {
        transition: none;
    }
}
