/* Notification styles */

.notification {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    padding: 16px;
}

.notification__icon {
    width: 24px;
    height: 24px;
    background-image: url('path/to/icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 16px;
}

.notification__icon {
    font-size: 24px;
    text-align: center;
}

.notification__avatar-link {
    display: block;
    width: 32px;
    height: 32px;
    margin-right: 16px;
}

.notification__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.notification__content {
    flex-grow: 1;
}

.notification__message {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.notification__username {
    font-weight: 600;
    color: #0077FF;
    text-decoration: none;
}


/* Modifier class for the "followed" notification type */

.notification--followed .notification__icon {
    background-image: url('path/to/follow-icon.svg');
}

.notification--followed .notification__message {
    font-weight: 600;
    color: #333;
}

.notification--followed .notification__username {
    color: #0077FF;
    text-decoration: none;
}


/* Accessibility styles */

.notification[aria-live="assertive"],
.notification[aria-live="polite"] {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.notification[aria-live="assertive"]::before,
.notification[aria-live="polite"]::before {
    content: "通知: ";
    font-size: 0;
    line-height: 0;
    position: absolute;
    left: -9999px;
}

.notification[aria-live="assertive"]::after,
.notification[aria-live="polite"]::after {
    content: "";
    font-size: 0;
    line-height: 0;
    position: absolute;
    left: -9999px;
}


/* Breakpoints */

@media (max-width: 480px) {
    .notification {
        padding: 12px;
    }
    .notification__avatar-link {
        margin-right: 12px;
    }
}


/* Notification base styles */

.notification {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.notification:hover {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.notification__icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    background-image: url("/icons/notification.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.notification__avatar-link {
    display: block;
    margin-right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.notification__avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification__content {
    flex: 1;
    overflow: hidden;
}

.notification__username {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.notification__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification__post-text {
    margin: 4px 0 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification__timestamp {
    margin: 4px 0 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}


/* Notification variations */

.notification--followed {
    background-color: #fff;
}

.notification--liked {
    background-color: #fde3e3;
}

.notification--commented {
    background-color: #f7f7f7;
}

.notification--shared {
    background-color: #e3fde3;
}