﻿/* == Notification Bar Dropdown on Nav == */
/* Bell badge: slightly smaller so it tucks nicely on the corner */
.ous-migrated-notification-badge {
    font-size: 0.7rem;
    line-height: 1;
    padding: .25rem .4rem;
}

/* Panel container (anchor it relative to the bell button) */
#ous-migrated-notification-bell-btn {
    position: relative;
}

.nav-item.ous-migrated-notification-wrapper {
    position: relative;
}

.ous-migrated-notification-panel {
    display: flex;
    position: absolute;
    top: 100%; /* directly below the bell */
    left: 50%; /* anchor to horizontal center of parent */
    transform: translateX(-50%); /* center align under the bell */
    margin-top: 10px; /* little gap */

    width: 360px;
    max-height: 70vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
    z-index: 1055;
    flex-direction: column;
}

    .ous-migrated-notification-panel[hidden] {
        display: none !important;
    }

/* Body scroll area */
.ous-migrated-notification-panel-body {
    overflow-y: auto;
    max-height: 60vh;
}

/* Items */
.ous-migrated-notification-item {
    width: 100%;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: transparent;
    border: 0;
    text-align: left;
    padding: .75rem 1rem;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

    .ous-migrated-notification-item:hover,
    .ous-migrated-notification-item:focus-visible {
        background: rgba(0,0,0,.09);
        outline: none;
    }

.ous-migrated-notification-item-icon {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.06);
}

.ous-migrated-notification-item-title {
    font-size: .95rem;
    line-height: 1.2;
}

.ous-migrated-notification-item-meta {
    font-size: .78rem;
    opacity: .7;
}

.bi-bell {
    display: inline-block; /* Required for rotation */
}

/* Narrow viewports: panel fills screen width */
@media (max-width: 576px) {
    .ous-migrated-notification-panel {
        right: -1rem;
        left: -1rem;
        width: auto;
        border-radius: 0 0 .75rem .75rem;
    }
}

/* Bell Shake when marking as read lol */
/* Shake animation for bell icon */
@keyframes ous-migrated-bell-shake {
    0%, 100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(15deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    80% {
        transform: rotate(10deg);
    }
}

.ous-migrated-bell-shake {
    animation: ous-migrated-bell-shake 0.6s ease-in-out;
}

/* Pop-out animation for badge */
@keyframes ous-migrated-badge-pop-out {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5); /* Slightly larger */
        opacity: 0;
    }
}

.ous-migrated-badge-pop-out {
    animation: ous-migrated-badge-pop-out 0.3s ease-in-out forwards;
}
