/*
 * GushOfLove — Notifications
 *
 * Loaded on: all pages.
 */

.enb-wrap {
    position: relative;
}

.enb-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--clr-bg);
    cursor: pointer;
    color: var(--clr-text);
    transition: background .15s,color .15s;
    flex-shrink: 0;
}

.enb-btn:hover {
    background: var(--clr-primary-lt);
    color: var(--clr-primary);
}

.enb-icon {
    display: block;
}

.enb-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--clr-primary);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.enb-panel {
    position: absolute;
    top: calc(100%+10px);
    right: -8px;
    width: 340px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--clr-border);
    z-index: 500;
    overflow: hidden;
    animation: slideDown .2s ease;
}

@keyframes slideDown {
from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}
}

.enb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--clr-border);
    background: #fafafa;
}

.enb-panel-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--clr-text);
}

.enb-panel-seeall {
    font-size: .78rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
}

.enb-panel-seeall:hover {
    text-decoration: underline;
}

.enb-list {
    max-height: 320px;
    overflow-y: auto;
}

.enb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8f8fa;
    text-decoration: none;
    transition: background .12s;
}

.enb-item:hover {
    background: var(--clr-primary-lt);
}

.enb-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.enb-item-body {
    flex: 1;
    min-width: 0;
}

.enb-item-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--clr-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enb-item-msg {
    font-size: .75rem;
    color: var(--clr-text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 16px;
    color: var(--clr-text-muted);
}

.enb-empty svg {
    opacity: .4;
}

.enb-empty p {
    font-size: .85rem;
    margin: 0;
}

.enb-panel-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--clr-border);
    background: #fafafa;
}

.enb-open-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    font-family: inherit;
}

.enb-open-btn:hover {
    background: var(--clr-primary-dk);
    color: #fff;
    text-decoration: none;
}

@media (max-width:480px) {
    .enb-panel {
        position: fixed;
        top: var(--header-h,68px);
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - var(--header-h,68px) - 16px);
        border-radius: var(--radius-lg);
        overflow-y: auto;
    }

    .enb-list {
        max-height: 240px;
    }
}
