/* Notification wrapper - needs relative for dropdown positioning */
.nav-notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link--notifications {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: var(--space-xs);
    transition: color var(--transition);
    position: relative;
}

.nav-link--notifications:hover {
    color: var(--color-accent);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background-color: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* Dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-dropdown--open {
    display: flex;
    flex-direction: column;
    animation: dropdown-in 0.2s ease;
}

.notification-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.notification-dropdown__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.notification-dropdown__mark-all {
    border: none;
    background: none;
    font-size: var(--font-size-xs);
    color: var(--color-accent);
    cursor: pointer;
    font-weight: 500;
}

.notification-dropdown__mark-all:hover {
    text-decoration: underline;
}

.notification-dropdown__list {
    overflow-y: auto;
    flex: 1;
}

.notification-dropdown__loading,
.notification-dropdown__empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Notification Item */
.notification-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition);
}

.notification-item:hover {
    background-color: var(--color-bg-alt);
}

.notification-item--unread {
    background-color: rgba(124, 92, 191, 0.06);
}

.notification-item--unread:hover {
    background-color: rgba(124, 92, 191, 0.1);
}

.notification-item__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.notification-item__icon svg {
    width: 16px;
    height: 16px;
}

.notification-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.notification-item__title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text);
}

.notification-item__body {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item__meta {
    font-size: 11px;
    color: var(--color-text-muted);
    opacity: 0.7;
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - var(--space-lg));
        right: calc(-1 * var(--space-sm));
    }
}
